mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
font: unify metrics calculations & separate sprite metrics
Unify grid metrics calculations by relying on shared logic mostly based on values directly from the font tables, this deduplicates a lot of code and gives us more control over how we interpret various metrics. Also separate metrics for underlined, strikethrough, and overline thickness and position, and box drawing thickness, so that they can individually be adjusted as the user desires.
This commit is contained in:
@@ -215,6 +215,8 @@ pub const SfntTag = enum(c_int) {
|
||||
pub fn DataType(comptime self: SfntTag) type {
|
||||
return switch (self) {
|
||||
.os2 => c.TT_OS2,
|
||||
.head => c.TT_Header,
|
||||
.post => c.TT_Postscript,
|
||||
else => unreachable, // As-needed...
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user