const std = @import("std"); const c = @cImport({ @cInclude("fontstash.h"); }); const Font = @This(); pub const Id = enum(c_int) { _, pub const invalid: Id = @enumFromInt(c.FONS_INVALID); }; pub const AlignX = enum(c_int) { left = c.FONS_ALIGN_LEFT, right = c.FONS_ALIGN_RIGHT, center = c.FONS_ALIGN_CENTER, _, }; pub const AlignY = enum(c_int) { top = c.FONS_ALIGN_TOP, middle = c.FONS_ALIGN_MIDDLE, bottom = c.FONS_ALIGN_BOTTOM, baseline = c.FONS_ALIGN_BASELINE, _, }; pub const Align = struct { x: AlignX, y: AlignY, };