mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-07 05:43:20 +00:00
37 lines
886 B
Zig
37 lines
886 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(u3) {
|
|
regular = 0,
|
|
bold = 1,
|
|
italic = 2,
|
|
bold_italic = 3,
|
|
};
|
|
|
|
/// The presentation for a an emoji.
|
|
pub const Presentation = enum(u1) {
|
|
text = 0, // U+FE0E
|
|
emoji = 1, // U+FEOF
|
|
};
|
|
|
|
/// 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());
|
|
}
|