From a29a0a1e5c499aea52ffd41c29c74289efcfe7ec Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 May 2024 21:01:44 -0700 Subject: [PATCH] pkg/macos: add more CoreText APIs --- pkg/macos/text/font.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/macos/text/font.zig b/pkg/macos/text/font.zig index c26a0f32f..32189f809 100644 --- a/pkg/macos/text/font.zig +++ b/pkg/macos/text/font.zig @@ -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))); }