font: disable CJK unification fallback with freetype rasterizer

This commit is contained in:
Mitchell Hashimoto
2024-05-08 12:18:35 -07:00
parent e037c55da6
commit 3c882e364a

View File

@ -427,6 +427,13 @@ pub const CoreText = struct {
) !?*macos.text.FontDescriptor {
_ = self;
if (comptime options.backend.hasFreetype()) {
// If we have freetype, we can't use CoreText to find a font
// that supports a specific codepoint because we need to
// have a CoreText font to be able to do so.
return null;
}
assert(desc.codepoint > 0);
// Get our original font. This is dependent on the requestd style