mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/macos: add more CoreText APIs
This commit is contained in:
@ -51,6 +51,10 @@ pub const Font = opaque {
|
||||
return @ptrCast(@constCast(c.CTFontCopyFeatures(@ptrCast(self))));
|
||||
}
|
||||
|
||||
pub fn copyDefaultCascadeListForLanguages(self: *Font) *foundation.Array {
|
||||
return @ptrCast(@constCast(c.CTFontCopyDefaultCascadeListForLanguages(@ptrCast(self), null)));
|
||||
}
|
||||
|
||||
pub fn getGlyphCount(self: *Font) usize {
|
||||
return @intCast(c.CTFontGetGlyphCount(@ptrCast(self)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user