From 51e42a62eda0ae9162c50cf582becadf86b45f93 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 1 Jul 2023 10:04:49 -0700 Subject: [PATCH] font: default rasterizer on macOS is now coretext --- src/font/main.zig | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/font/main.zig b/src/font/main.zig index f1e6b298d..b3ad82b73 100644 --- a/src/font/main.zig +++ b/src/font/main.zig @@ -71,12 +71,10 @@ pub const Backend = enum { }; } - return if (target.isDarwin()) darwin: { - // On macOS right now, the coretext renderer is still pretty buggy - // so we default to coretext for font discovery and freetype for - // rasterization. - break :darwin .coretext_freetype; - } else .fontconfig_freetype; + // macOS also supports "coretext_freetype" but there is no scenario + // that is the default. It is only used by people who want to + // self-compile Ghostty and prefer the freetype aesthetic. + return if (target.isDarwin()) .coretext else .fontconfig_freetype; } // All the functions below can be called at comptime or runtime to