mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-09 13:18:18 +00:00
31 lines
760 B
Zig
31 lines
760 B
Zig
const std = @import("std");
|
|
|
|
pub const Face = @import("Face.zig");
|
|
pub const Group = @import("Group.zig");
|
|
pub const GroupCache = @import("GroupCache.zig");
|
|
pub const Glyph = @import("Glyph.zig");
|
|
pub const Library = @import("Library.zig");
|
|
pub const Shaper = @import("Shaper.zig");
|
|
|
|
/// The styles that a family can take.
|
|
pub const Style = enum(u2) {
|
|
regular = 0,
|
|
bold = 1,
|
|
italic = 2,
|
|
bold_italic = 3,
|
|
};
|
|
|
|
/// Font metrics useful for things such as grid calculation.
|
|
pub const Metrics = struct {
|
|
/// The width and height of a monospace cell.
|
|
cell_width: f32,
|
|
cell_height: f32,
|
|
|
|
/// The baseline offset that can be used to place underlines.
|
|
cell_baseline: f32,
|
|
};
|
|
|
|
test {
|
|
@import("std").testing.refAllDecls(@This());
|
|
}
|