mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
coretext: improve strikethrough position calculation
This commit is contained in:
@@ -188,6 +188,14 @@ pub const Font = opaque {
|
||||
return c.CTFontGetUnderlineThickness(@ptrCast(self));
|
||||
}
|
||||
|
||||
pub fn getCapHeight(self: *Font) f64 {
|
||||
return c.CTFontGetCapHeight(@ptrCast(self));
|
||||
}
|
||||
|
||||
pub fn getXHeight(self: *Font) f64 {
|
||||
return c.CTFontGetXHeight(@ptrCast(self));
|
||||
}
|
||||
|
||||
pub fn getUnitsPerEm(self: *Font) u32 {
|
||||
return c.CTFontGetUnitsPerEm(@ptrCast(self));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user