diff --git a/src/test.rs b/src/test.rs index 1ee6ab6..ac30358 100644 --- a/src/test.rs +++ b/src/test.rs @@ -311,7 +311,7 @@ fn font_styles() { synthesis: Synthesis, } - let mut lines = vec![ + let lines = vec![ ( "FiraCode Normal", vec![StyleProperty::FontStack(FontStack::Source( @@ -423,6 +423,22 @@ fn font_styles() { }, }, ), + ( + "CaskaydiaCove Nerd Font Italic", + vec![ + StyleProperty::FontStack(FontStack::Source("CaskaydiaCove Nerd Font")), + StyleProperty::FontStyle(FontStyle::Italic), + ], + Expected { + fullname: "CaskaydiaCove NF Italic".into(), + attributes: Attributes::new(Stretch::NORMAL, Weight::NORMAL, Style::Italic), + synthesis: Synthesis { + vars: vec![], + embolden: false, + skew: 0.0.into(), + }, + }, + ), ( "Monaspace Xenon Var", vec![StyleProperty::FontStack(FontStack::Source( @@ -646,25 +662,6 @@ fn font_styles() { }, ), ]; - - #[cfg(not(target_os = "windows"))] - lines.push(( - "CaskaydiaCove Nerd Font Italic", - vec![ - StyleProperty::FontStack(FontStack::Source("CaskaydiaCove Nerd Font")), - StyleProperty::FontStyle(FontStyle::Italic), - ], - Expected { - fullname: "CaskaydiaCove NF Italic".into(), - attributes: Attributes::new(Stretch::NORMAL, Weight::NORMAL, Style::Italic), - synthesis: Synthesis { - vars: vec![], - embolden: false, - skew: 0.0.into(), - }, - }, - )); - let layout = shaper.layout_within_with( &lines .iter()