mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-20 03:51:26 +00:00
@@ -139,6 +139,15 @@ pub const Descriptor = struct {
|
||||
false,
|
||||
));
|
||||
|
||||
// For fontconfig, we always add monospace in the pattern. Since
|
||||
// fontconfig sorts by closeness to the pattern, this doesn't fully
|
||||
// exclude non-monospace but helps prefer it.
|
||||
assert(pat.add(
|
||||
.spacing,
|
||||
.{ .integer = @intFromEnum(fontconfig.Spacing.mono) },
|
||||
false,
|
||||
));
|
||||
|
||||
return pat;
|
||||
}
|
||||
|
||||
@@ -277,7 +286,7 @@ pub const Fontconfig = struct {
|
||||
if (res.result != .match) return error.FontConfigFailed;
|
||||
errdefer res.fs.destroy();
|
||||
|
||||
return DiscoverIterator{
|
||||
return .{
|
||||
.config = self.fc_config,
|
||||
.pattern = pat,
|
||||
.set = res.fs,
|
||||
|
||||
Reference in New Issue
Block a user