summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2013-03-08 12:31:05 +0000
committertavmjong-free <tavmjong@free.fr>2013-03-08 12:31:05 +0000
commitf8e68d9b5bf61f2c68e766c4d75cb50240d93364 (patch)
treea8197e98515500dbb461c391588fb925333e8a55 /src/libnrtype
parentRestore CSS generic faux faces. (diff)
downloadinkscape-f8e68d9b5bf61f2c68e766c4d75cb50240d93364.tar.gz
inkscape-f8e68d9b5bf61f2c68e766c4d75cb50240d93364.zip
Use font-weight names rather than numerical values. Fixes bug when scrolling to URW Chancery L.
(bzr r12183)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 1e3ba01e9..712c17915 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -556,13 +556,13 @@ namespace Inkscape
PangoWeight weight = pango_font_description_get_weight( desc );
switch ( weight ) {
case PANGO_WEIGHT_THIN:
- sp_repr_css_set_property (css, "font-weight", "100" );
+ sp_repr_css_set_property (css, "font-weight", "thin" );
break;
case PANGO_WEIGHT_ULTRALIGHT:
- sp_repr_css_set_property (css, "font-weight", "200" );
+ sp_repr_css_set_property (css, "font-weight", "extra light" );
break;
case PANGO_WEIGHT_LIGHT:
- sp_repr_css_set_property (css, "font-weight", "300" );
+ sp_repr_css_set_property (css, "font-weight", "light" );
break;
case PANGO_WEIGHT_BOOK:
sp_repr_css_set_property (css, "font-weight", "380" );
@@ -571,19 +571,19 @@ namespace Inkscape
sp_repr_css_set_property (css, "font-weight", "normal" );
break;
case PANGO_WEIGHT_MEDIUM:
- sp_repr_css_set_property (css, "font-weight", "500" );
+ sp_repr_css_set_property (css, "font-weight", "medium" );
break;
case PANGO_WEIGHT_SEMIBOLD:
- sp_repr_css_set_property (css, "font-weight", "600" );
+ sp_repr_css_set_property (css, "font-weight", "semi bold" );
break;
case PANGO_WEIGHT_BOLD:
sp_repr_css_set_property (css, "font-weight", "bold" );
break;
case PANGO_WEIGHT_ULTRABOLD:
- sp_repr_css_set_property (css, "font-weight", "800" );
+ sp_repr_css_set_property (css, "font-weight", "extra bold" );
break;
case PANGO_WEIGHT_HEAVY:
- sp_repr_css_set_property (css, "font-weight", "900" );
+ sp_repr_css_set_property (css, "font-weight", "black" );
break;
case PANGO_WEIGHT_ULTRAHEAVY:
sp_repr_css_set_property (css, "font-weight", "1000" );