summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-03-01 01:42:13 +0000
committerjabiertxof <info@marker.es>2016-03-01 01:42:13 +0000
commit145f815859ba21f45e67d315e52f360f029355c7 (patch)
tree54448bc60a94415f63f7b6f46296c8d5e2ac58a6 /src/sp-text.cpp
parentImprove fill rule and add mass option (diff)
parenttype in commit r14664 (diff)
downloadinkscape-145f815859ba21f45e67d315e52f360f029355c7.tar.gz
inkscape-145f815859ba21f45e67d315e52f360f029355c7.zip
update to trunk
(bzr r14648.1.3)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index c7dfdd694..afbe0b147 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -367,8 +367,11 @@ gchar* SPText::description() const {
char *n = xml_quote_strdup( style->font_family.value );
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ int unit = prefs->getInt("/options/font/unitType", SP_CSS_UNIT_PT);
Inkscape::Util::Quantity q = Inkscape::Util::Quantity(style->font_size.computed, "px");
- GString *xs = g_string_new(q.string(SP_ACTIVE_DESKTOP->getNamedView()->display_units).c_str());
+ q.quantity *= this->i2doc_affine().descrim();
+ GString *xs = g_string_new(q.string(sp_style_get_css_unit_string(unit)).c_str());
char const *trunc = "";
Inkscape::Text::Layout const *layout = te_get_layout((SPItem *) this);