From 4a6046adaddcbac0d87df38ab4bbf10dbded69f0 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 18 Mar 2019 10:21:43 +0100 Subject: Fix rendering for text with inherited 'font-variation-settings' property. --- src/libnrtype/FontFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index 583078803..0260a9c4b 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -201,8 +201,8 @@ PangoFontDescription* ink_font_description_from_style(SPStyle const *style) } #if PANGO_VERSION_CHECK(1,41,1) - // Check if set as Pango will add @ to string even if empty (bug in Pango?). - if (style->font_variation_settings.set) { + // Check if not empty as Pango will add @ to string even if empty (bug in Pango?). + if (!style->font_variation_settings.axes.empty()) { pango_font_description_set_variations(descr, style->font_variation_settings.toString().c_str()); } #endif -- cgit v1.2.3