pkg/macos: add more CoreText APIs

This commit is contained in:
Mitchell Hashimoto
2024-05-05 21:01:44 -07:00
parent 2e2d924353
commit a29a0a1e5c

View File

@ -51,6 +51,10 @@ pub const Font = opaque {
return @ptrCast(@constCast(c.CTFontCopyFeatures(@ptrCast(self)))); 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 { pub fn getGlyphCount(self: *Font) usize {
return @intCast(c.CTFontGetGlyphCount(@ptrCast(self))); return @intCast(c.CTFontGetGlyphCount(@ptrCast(self)));
} }