mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-19 11:31:19 +00:00
search for unknown codepoints in any available font face
If an unknown codepoint is rendered, we now will query the OS for ANY font that can satisfy the codepoint (rather than rendering `?`).
This commit is contained in:
@@ -175,12 +175,12 @@ pub fn create(alloc: Allocator, app: *App, config: *const Config) !*Window {
|
||||
errdefer alloc.destroy(font_group);
|
||||
font_group.* = try font.GroupCache.init(alloc, group: {
|
||||
var group = try font.Group.init(alloc, font_lib, font_size);
|
||||
errdefer group.deinit(alloc);
|
||||
errdefer group.deinit();
|
||||
|
||||
// Search for fonts
|
||||
if (font.Discover != void) {
|
||||
var disco = font.Discover.init();
|
||||
defer disco.deinit();
|
||||
group.discover = disco;
|
||||
|
||||
if (config.@"font-family") |family| {
|
||||
var disco_it = try disco.discover(.{
|
||||
|
||||
Reference in New Issue
Block a user