summaryrefslogtreecommitdiffstats
path: root/src/style-internal.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-05-18 19:50:54 +0000
committertavmjong-free <tavmjong@free.fr>2015-05-18 19:50:54 +0000
commit7c7e740dd76054367ceae7f545ac27f0d7cdc7f0 (patch)
tree73b552a3f7337a029eb337bb876f932511137cbd /src/style-internal.h
parentsbasis-to-bezier. avoid ill-conditioned behavior for anti-symmetric case. (Bu... (diff)
downloadinkscape-7c7e740dd76054367ceae7f545ac27f0d7cdc7f0.tar.gz
inkscape-7c7e740dd76054367ceae7f545ac27f0d7cdc7f0.zip
Enable setting of 'font-variant-ligatures' (rendering waits on new Pango library).
(bzr r14162)
Diffstat (limited to 'src/style-internal.h')
-rw-r--r--src/style-internal.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/style-internal.h b/src/style-internal.h
index ea966866a..bd2a92c8c 100644
--- a/src/style-internal.h
+++ b/src/style-internal.h
@@ -546,8 +546,7 @@ public:
{}
SPILigatures( Glib::ustring const &name, SPStyleEnum const *enums) :
- SPIEnum( name, enums,
- SP_CSS_FONT_VARIANT_LIGATURES_COMMON | SP_CSS_FONT_VARIANT_LIGATURES_CONTEXTUAL)
+ SPIEnum( name, enums, SP_CSS_FONT_VARIANT_NORMAL )
{}
virtual ~SPILigatures()
@@ -559,6 +558,29 @@ public:
};
+/// SPIEnum w/ extra bits. The 'font-variants-numeric' property is a complete mess that needs
+/// special handling. Multiple key words can be specified, some exclusive of others.
+class SPINumeric : public SPIEnum
+{
+
+public:
+ SPINumeric() :
+ SPIEnum( "anonymous_enumnumeric", NULL )
+ {}
+
+ SPINumeric( Glib::ustring const &name, SPStyleEnum const *enums) :
+ SPIEnum( name, enums, SP_CSS_FONT_VARIANT_NUMERIC_NORMAL )
+ {}
+
+ virtual ~SPINumeric()
+ {}
+
+ virtual void read( gchar const *str );
+ virtual const Glib::ustring write( guint const flags = SP_STYLE_FLAG_IFSET,
+ SPIBase const *const base = NULL ) const;
+};
+
+
/// String type internal to SPStyle.
// Used for 'marker', ..., 'font', 'font-family', 'inkscape-font-specification'
class SPIString : public SPIBase