summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2011-07-10 09:01:19 +0000
committertavmjong-free <tavmjong@free.fr>2011-07-10 09:01:19 +0000
commit12f47cac056804dd53cc334b27c7b1b0f55ab5b6 (patch)
tree0b4d079f43b7b65a727c29757ca4550952cde865 /src/libnrtype
parentRefactored to abstract lcms usage more. Added CMSSystem class. (diff)
downloadinkscape-12f47cac056804dd53cc334b27c7b1b0f55ab5b6.tar.gz
inkscape-12f47cac056804dd53cc334b27c7b1b0f55ab5b6.zip
Allow em and ex as units on font-size.
(bzr r10437.1.1)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-Input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/Layout-TNG-Input.cpp b/src/libnrtype/Layout-TNG-Input.cpp
index 45bc0c89b..c5ea3969d 100644
--- a/src/libnrtype/Layout-TNG-Input.cpp
+++ b/src/libnrtype/Layout-TNG-Input.cpp
@@ -135,7 +135,7 @@ float Layout::InputStreamTextSource::styleComputeFontSize() const
if (this_style->font_size.set && !this_style->font_size.inherit) {
switch (this_style->font_size.type) {
case SP_FONT_SIZE_LITERAL: {
- switch(this_style->font_size.value) { // these multipliers are straight out of the CSS spec
+ switch(this_style->font_size.literal) { // these multipliers are straight out of the CSS spec
case SP_CSS_FONT_SIZE_XX_SMALL: return medium_font_size * inherit_multiplier * (3.0/5.0);
case SP_CSS_FONT_SIZE_X_SMALL: return medium_font_size * inherit_multiplier * (3.0/4.0);
case SP_CSS_FONT_SIZE_SMALL: return medium_font_size * inherit_multiplier * (8.0/9.0);