diff --git a/src/renderer/caching_shaper.rs b/src/renderer/caching_shaper.rs index f176e1d..9afd80e 100644 --- a/src/renderer/caching_shaper.rs +++ b/src/renderer/caching_shaper.rs @@ -73,10 +73,10 @@ pub fn build_collection_by_font_name(font_name: Option<&str>, bold: bool, italic Weight::NORMAL }; - let style = if !italic || bold { - Style::Normal - } else { + let style = if italic { Style::Italic + } else { + Style::Normal }; let properties = Properties {