From 499e7f936f618f0925a289d40a460683d2cf3cc0 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 12 Mar 2022 11:16:21 -0700 Subject: [PATCH] fixup build on windows refs: #1646 --- wezterm-font/src/locator/gdi.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wezterm-font/src/locator/gdi.rs b/wezterm-font/src/locator/gdi.rs index 948dc21da..9b7cf4cbd 100644 --- a/wezterm-font/src/locator/gdi.rs +++ b/wezterm-font/src/locator/gdi.rs @@ -102,7 +102,7 @@ fn load_font(font_attr: &FontAttributes, pixel_size: u16) -> anyhow::Result anyhow::Result<(ParsedFo let mut attr = FontAttributes::new(&name); attr.weight = config::FontWeight::from_opentype_weight(log_font.lfWeight as u16); if log_font.lfItalic == 1 { - attr.slant = WTFontStyle::Italic; + attr.style = WTFontStyle::Italic; } let mut font_info = vec![]; @@ -170,7 +170,7 @@ fn attributes_to_descriptor(font_attr: &FontAttributes) -> FontDescriptor { family_name: font_attr.family.to_string(), weight: FontWeight::from_u32(font_attr.weight.to_opentype_weight() as u32), stretch: FontStretch::Normal, - style: match font_attr.slant { + style: match font_attr.style { WTFontStyle::Italic => FontStyle::Italic, WTFontStyle::Oblique => FontStyle::Oblique, WTFontStyle::Normal => FontStyle::Normal, @@ -319,7 +319,7 @@ impl FontLocator for GdiFontLocator { let attr = FontAttributes { weight: WTFontWeight::from_opentype_weight(font.weight().to_u32() as _), stretch: WTFontStretch::from_opentype_stretch(font.stretch().to_u32() as _), - slant: WTFontStyle::Normal, + style: WTFontStyle::Normal, family: font.family_name(), is_fallback: true, is_synthetic: true,