diff options
author | Joe Moon <joe@xoxomoon.com> | 2018-02-07 08:53:58 -0800 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-02-07 08:53:58 -0800 |
commit | cc87390edee9d28d9e7456c6ac0cf3a6b7a096c2 (patch) | |
tree | 103d294e339f1c9cec567fa2ac8a402f1e9a3fa9 | |
parent | 2466f81d5e0cb56dd00231f63f2dbcef1840196a (diff) | |
download | alacritty-cc87390edee9d28d9e7456c6ac0cf3a6b7a096c2.tar.gz alacritty-cc87390edee9d28d9e7456c6ac0cf3a6b7a096c2.zip |
fix fallbacks in macos (#1099)
fixes #1086
-rw-r--r-- | font/src/darwin/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index feadd3f4..14381113 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -326,6 +326,7 @@ fn cascade_list_for_languages( pub fn descriptors_for_family(family: &str) -> Vec<Descriptor> { let mut out = Vec::new(); + info!("family: {}", family); let ct_collection = match create_for_family(family) { Some(c) => c, None => return out, @@ -349,7 +350,7 @@ impl Descriptor { let fallbacks = if load_fallbacks { descriptors_for_family("Menlo") .into_iter() - .filter(|d| d.family_name == "Menlo Regular") + .filter(|d| d.font_name == "Menlo-Regular") .nth(0) .map(|descriptor| { let menlo = ct_new_from_descriptor(&descriptor.ct_descriptor, size); |