From d978d05d7ec628d2190b6b39f1a092c75384db1a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 28 May 2024 21:05:32 -0700 Subject: [PATCH] font/coretext: glyphIndex must return u32 for noop shaper --- src/font/face/coretext.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index ceb2e40f7..6d07f1fa4 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -238,7 +238,7 @@ pub const Face = struct { /// Returns the glyph index for the given Unicode code point. If this /// face doesn't support this glyph, null is returned. - pub fn glyphIndex(self: Face, cp: u32) ?u16 { + pub fn glyphIndex(self: Face, cp: u32) ?u32 { // Turn UTF-32 into UTF-16 for CT API var unichars: [2]u16 = undefined; const pair = macos.foundation.stringGetSurrogatePairForLongCharacter(cp, &unichars);