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);