summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-05-16 12:50:10 +0000
committertavmjong-free <tavmjong@free.fr>2015-05-16 12:50:10 +0000
commitddf9853ed86846c5cc4e22a1ede31dafcda5c99d (patch)
tree1c3b8a10aa9caae16921dffc4b55eb11bad94e82 /src/style-internal.cpp
parentLatvian translation update (diff)
downloadinkscape-ddf9853ed86846c5cc4e22a1ede31dafcda5c99d.tar.gz
inkscape-ddf9853ed86846c5cc4e22a1ede31dafcda5c99d.zip
Enable setting of 'font-variant-position' and 'font-variant-caps'. Rendering awaits Pango update.
(bzr r14155)
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index 7f6f6400d..3b76e5ab1 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -726,7 +726,7 @@ SPILigatures::read( gchar const *str ) {
if( !str ) return;
- value = SP_CSS_FONT_VARIANT_LIGATURES_COMMON | SP_CSS_FONT_VARIANT_LIGATURES_CONTEXTUAL;
+ value = SP_CSS_FONT_VARIANT_LIGATURES_NORMAL;
if( !strcmp(str, "inherit") ) {
set = true;
inherit = true;
@@ -775,8 +775,7 @@ SPILigatures::write( guint const flags, SPIBase const *const base) const {
if (value == SP_CSS_FONT_VARIANT_LIGATURES_NONE ) {
return (name + ":none;");
}
- if (value == (SP_CSS_FONT_VARIANT_LIGATURES_COMMON +
- SP_CSS_FONT_VARIANT_LIGATURES_CONTEXTUAL) ) {
+ if (value == SP_CSS_FONT_VARIANT_LIGATURES_NORMAL ) {
return (name + ":normal;");
}