mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
font: fontconfig should not omit earlier fonts
This commit is contained in:
@ -72,9 +72,11 @@ fn runArgs(alloc_gpa: Allocator, argsIter: anytype) !u8 {
|
||||
};
|
||||
const full_name = try alloc.dupe(u8, full_name_buf);
|
||||
|
||||
try families.append(family);
|
||||
const gop = try map.getOrPut(family);
|
||||
if (!gop.found_existing) gop.value_ptr.* = .{};
|
||||
if (!gop.found_existing) {
|
||||
try families.append(family);
|
||||
gop.value_ptr.* = .{};
|
||||
}
|
||||
try gop.value_ptr.append(alloc, full_name);
|
||||
}
|
||||
|
||||
|
@ -198,7 +198,7 @@ pub const Fontconfig = struct {
|
||||
pat.defaultSubstitute();
|
||||
|
||||
// Search
|
||||
const res = self.fc_config.fontSort(pat, true, null);
|
||||
const res = self.fc_config.fontSort(pat, false, null);
|
||||
if (res.result != .match) return error.FontConfigFailed;
|
||||
errdefer res.fs.destroy();
|
||||
|
||||
|
Reference in New Issue
Block a user