From c972a3eacf9f4127501fcd7ac744ebe286e6aa61 Mon Sep 17 00:00:00 2001 From: keith Date: Sun, 15 Mar 2020 14:32:19 -0700 Subject: [PATCH] enable italic bold --- src/renderer/caching_shaper.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {