font: default rasterizer on macOS is now coretext

This commit is contained in:
Mitchell Hashimoto
2023-07-01 10:04:49 -07:00
parent 0bb2d22052
commit 51e42a62ed

View File

@ -71,12 +71,10 @@ pub const Backend = enum {
}; };
} }
return if (target.isDarwin()) darwin: { // macOS also supports "coretext_freetype" but there is no scenario
// On macOS right now, the coretext renderer is still pretty buggy // that is the default. It is only used by people who want to
// so we default to coretext for font discovery and freetype for // self-compile Ghostty and prefer the freetype aesthetic.
// rasterization. return if (target.isDarwin()) .coretext else .fontconfig_freetype;
break :darwin .coretext_freetype;
} else .fontconfig_freetype;
} }
// All the functions below can be called at comptime or runtime to // All the functions below can be called at comptime or runtime to