From ab74a354e7b06b1f560c9888c1ce1b728e8db359 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Wed, 2 Aug 2017 22:29:54 +0200 Subject: Do not scale font-size when set to a relative unit Relative units already respect the transform of parents and don't have to be recalculated when set to relative unit from inside the UI It's actually not possible to set relative font-sizes anywhere in the UI except when setting sub/superscripts (sets font-size to 65%) Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1658029 --- src/style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/style.cpp b/src/style.cpp index ca0eed6f7..ba6fd5f58 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1966,7 +1966,7 @@ sp_css_attr_scale(SPCSSAttr *css, double ex) sp_css_attr_scale_property_single(css, "stroke-width", ex); sp_css_attr_scale_property_list (css, "stroke-dasharray", ex); sp_css_attr_scale_property_single(css, "stroke-dashoffset", ex); - sp_css_attr_scale_property_single(css, "font-size", ex); + sp_css_attr_scale_property_single(css, "font-size", ex, true); sp_css_attr_scale_property_single(css, "kerning", ex); sp_css_attr_scale_property_single(css, "letter-spacing", ex); sp_css_attr_scale_property_single(css, "word-spacing", ex); -- cgit v1.2.3