1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00

fontconfig: skip postscript name lookup if already resolved font

I put this condition at the wrong nesting level :-/
This commit is contained in:
Wez Furlong 2021-04-13 08:57:04 -07:00
parent c54b9dc873
commit 5d386818e1

View File

@ -75,13 +75,13 @@ impl FontLocator for FontConfigFontLocator {
for attr in fonts_selection {
for &spacing in &SPACING {
if loaded.contains(&attr) {
continue;
}
// First, we assume that attr.family is the family name.
// If that doesn't work, we try by postscript name.
for resolver in &[by_family, by_postscript] {
if loaded.contains(&attr) {
continue;
}
match resolver(attr, spacing) {
Ok(best) => {
let file = best.get_file()?;