summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2015-02-22 18:04:11 +0000
committerapenner <penner@vaxxine.com>2015-02-22 18:04:11 +0000
commit7e81b39ceaccd1042a24152346ab3e8c9237d27e (patch)
tree8c27e1665468c4825c7c7a5b7903a89c2a30c838 /src/desktop-style.cpp
parentMake icon creation more consistent - use sp_icon_new where possible (diff)
downloadinkscape-7e81b39ceaccd1042a24152346ab3e8c9237d27e.tar.gz
inkscape-7e81b39ceaccd1042a24152346ab3e8c9237d27e.zip
fix scaling of letter-spacing and word-spacing. (Bug 772057)
Fixed bugs: - https://launchpad.net/bugs/772057 (bzr r13937)
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp
index ee9fa39ec..c713e0d61 100644
--- a/src/desktop-style.cpp
+++ b/src/desktop-style.cpp
@@ -1031,7 +1031,7 @@ objects_query_fontnumbers (GSList *objects, SPStyle *style_res)
letterspacing_normal = true;
}
} else {
- letterspacing += style->letter_spacing.computed; /// \todo FIXME: we assume non-% units here
+ letterspacing += style->letter_spacing.computed * Geom::Affine(item->i2dt_affine()).descrim(); /// \todo FIXME: we assume non-% units here
letterspacing_normal = false;
}
@@ -1040,7 +1040,7 @@ objects_query_fontnumbers (GSList *objects, SPStyle *style_res)
wordspacing_normal = true;
}
} else {
- wordspacing += style->word_spacing.computed; /// \todo FIXME: we assume non-% units here
+ wordspacing += style->word_spacing.computed * Geom::Affine(item->i2dt_affine()).descrim(); /// \todo FIXME: we assume non-% units here
wordspacing_normal = false;
}