mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
Merge pull request #1809 from mitchellh/any-preso
font: when presentation isn't found, always fallback to any
This commit is contained in:
@ -211,8 +211,10 @@ pub fn getIndex(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this is already regular, we're done falling back.
|
// If this is regular with any matching presentation, then we are done
|
||||||
if (style == .regular and p == null) return null;
|
// there is nothing more we can do. Otherwise we fall through and do
|
||||||
|
// an any presentation search.
|
||||||
|
if (style == .regular and p_mode == .any) return null;
|
||||||
|
|
||||||
// For non-regular fonts, we fall back to regular with any presentation
|
// For non-regular fonts, we fall back to regular with any presentation
|
||||||
return self.collection.getIndex(cp, .regular, .{ .any = {} });
|
return self.collection.getIndex(cp, .regular, .{ .any = {} });
|
||||||
|
Reference in New Issue
Block a user