summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2016-03-12 23:50:04 +0000
committerMartin Owens <doctormo@gmail.com>2016-03-12 23:50:04 +0000
commit1c9e7ee09d40b8e06b80d0a09eca17d1b0fb8357 (patch)
treec660c2c4b4002e3c142d386582afeddd5f5b35b3 /src/style.cpp
parentAdd new TTF to the logo in seamless pattern extension (diff)
downloadinkscape-1c9e7ee09d40b8e06b80d0a09eca17d1b0fb8357.tar.gz
inkscape-1c9e7ee09d40b8e06b80d0a09eca17d1b0fb8357.zip
Add a units box to line height and wire in the style units, plus some cleanup
(bzr r14701)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 35138d25b..99beaed22 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -113,7 +113,7 @@ SPStyle::SPStyle(SPDocument *document_in, SPObject *object_in) :
font_weight( "font-weight", enum_font_weight, SP_CSS_FONT_WEIGHT_NORMAL, SP_CSS_FONT_WEIGHT_400 ),
font_stretch( "font-stretch", enum_font_stretch, SP_CSS_FONT_STRETCH_NORMAL ),
font_size(),
- line_height( "line-height", 1.25 ), // SPILengthOrNormal
+ line_height( "line-height", 125 ), // SPILengthOrNormal
font_family( "font-family", "sans-serif" ), // SPIString w/default
font(), // SPIFont
font_specification( "-inkscape-font-specification" ), // SPIString
@@ -1957,7 +1957,7 @@ sp_css_attr_scale(SPCSSAttr *css, double ex)
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);
- sp_css_attr_scale_property_single(css, "line-height", ex, true);
+ //sp_css_attr_scale_property_single(css, "line-height", ex, true);
return css;
}