summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-03-18 09:21:43 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-03-18 09:21:43 +0000
commit4a6046adaddcbac0d87df38ab4bbf10dbded69f0 (patch)
tree72020b210387e8ba8e59dd68627852ce48ae217e /src/libnrtype
parentarc polygonization uses arc's scale for precision (diff)
downloadinkscape-4a6046adaddcbac0d87df38ab4bbf10dbded69f0.tar.gz
inkscape-4a6046adaddcbac0d87df38ab4bbf10dbded69f0.zip
Fix rendering for text with inherited 'font-variation-settings' property.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp4
1 files changed, 2 insertions, 2 deletions
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