mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
font: default rasterizer on macOS is now coretext
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user