From 7370e1b1a4b6c1662512617884a5207e1ad0e41e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 12 Mar 2022 11:13:58 -0700 Subject: [PATCH] fixup mac build refs: #1646 --- wezterm-font/src/locator/core_text.rs | 4 ++-- wezterm-font/src/shaper/harfbuzz.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wezterm-font/src/locator/core_text.rs b/wezterm-font/src/locator/core_text.rs index 8cd3000b5..b0e3c2a02 100644 --- a/wezterm-font/src/locator/core_text.rs +++ b/wezterm-font/src/locator/core_text.rs @@ -190,7 +190,7 @@ fn build_fallback_list_impl() -> anyhow::Result> { family: "Apple Symbols".to_string(), weight: FontWeight::REGULAR, stretch: FontStretch::Normal, - slant: FontStyle::Normal, + style: FontStyle::Normal, is_fallback: true, is_synthetic: true, harfbuzz_features: None, @@ -208,7 +208,7 @@ fn build_fallback_list_impl() -> anyhow::Result> { fonts.retain(|f| { f.weight() == FontWeight::REGULAR && f.stretch() == FontStretch::Normal - && f.slant() == FontStyle::Normal + && f.style() == FontStyle::Normal }); let mut seen = HashSet::new(); diff --git a/wezterm-font/src/shaper/harfbuzz.rs b/wezterm-font/src/shaper/harfbuzz.rs index b83590ad2..5869b723a 100644 --- a/wezterm-font/src/shaper/harfbuzz.rs +++ b/wezterm-font/src/shaper/harfbuzz.rs @@ -666,7 +666,7 @@ mod test { weight: Default::default(), is_fallback: false, is_synthetic: false, - slant: Default::default(), + style: Default::default(), freetype_load_flags: None, freetype_load_target: None, freetype_render_target: None,