From 512f06a80f013e903d513b6ffa069d48c6abbfaa Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Sat, 5 Jan 2008 10:38:18 +0000 Subject: Applying Gail's patch for font-specification (Closes LP: #169973) - New attribute in an object's style string called -inkscape-font-specification stores full font name - This will be useful when we can support fonts that don't fit into the confines of CSS (if either pango enhances their PangoFontDescription structure, or we can get around its limitations) - Framework in place to separate font families from their "styles" (faces) in the text and font dialog - need only the code that does the actual separation - Text and Styles dialog shows only fonts it can handle (bzr r4392) --- src/attributes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/attributes.h') diff --git a/src/attributes.h b/src/attributes.h index 33e060893..89b3f4d04 100644 --- a/src/attributes.h +++ b/src/attributes.h @@ -23,7 +23,7 @@ unsigned char const *sp_attribute_name(unsigned int id); * True iff k is a property in SVG, i.e. something that can be written either in a style attribute * or as its own XML attribute. */ -#define SP_ATTRIBUTE_IS_CSS(k) (((k) >= SP_PROP_FONT) && ((k) <= SP_PROP_TEXT_RENDERING)) +#define SP_ATTRIBUTE_IS_CSS(k) (((k) >= SP_PROP_INKSCAPE_FONT_SPEC) && ((k) <= SP_PROP_TEXT_RENDERING)) enum SPAttributeEnum { SP_ATTR_INVALID, ///< Must have value 0. @@ -321,6 +321,8 @@ enum SPAttributeEnum { SP_ATTR_LAYOUT_OPTIONS, /* CSS2 */ + /* Custom full font name because Font stuff below is inadequate */ + SP_PROP_INKSCAPE_FONT_SPEC, /* Font */ SP_PROP_FONT, SP_PROP_FONT_FAMILY, -- cgit v1.2.3