summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-04-21 21:26:33 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-04-21 21:26:33 +0000
commit451d5a70fe771cf19e570e9896ad566239974ece (patch)
tree18be852138869676ef15a5f0a514ecfb89a57b89 /pango
parent5e19f6d537039b18ad17e2b8752f45a8b614f3b2 (diff)
downloadpango-451d5a70fe771cf19e570e9896ad566239974ece.tar.gz
Bug 490669 – add some <span> attribute aliases
2008-04-21 Behdad Esfahbod <behdad@gnome.org> Bug 490669 – add some <span> attribute aliases * docs/pango_markup.sgml: * pango/pango-markup.c (span_parse_func): Add fgcolor, bgcolor, font, font_size, font_weight, font_variant, ... svn path=/trunk/; revision=2603
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-markup.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index abb3890a..449810e3 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1008,11 +1008,20 @@ span_parse_func (MarkupData *md,
switch (names[i][0]) {
case 'f':
- CHECK_ATTRIBUTE2(family, "face");
CHECK_ATTRIBUTE (fallback);
+ CHECK_ATTRIBUTE2(desc, "font");
CHECK_ATTRIBUTE2(desc, "font_desc");
+ CHECK_ATTRIBUTE2(family, "face");
+
CHECK_ATTRIBUTE2(family, "font_family");
+ CHECK_ATTRIBUTE2(size, "font_size");
+ CHECK_ATTRIBUTE2(stretch, "font_stretch");
+ CHECK_ATTRIBUTE2(style, "font_style");
+ CHECK_ATTRIBUTE2(variant, "font_variant");
+ CHECK_ATTRIBUTE2(weight, "font_weight");
+
CHECK_ATTRIBUTE (foreground);
+ CHECK_ATTRIBUTE2 (foreground, "fgcolor");
break;
case 's':
CHECK_ATTRIBUTE (size);
@@ -1035,6 +1044,7 @@ span_parse_func (MarkupData *md,
break;
default:
CHECK_ATTRIBUTE (background);
+ CHECK_ATTRIBUTE2 (background, "bgcolor");
CHECK_ATTRIBUTE2(foreground, "color");
CHECK_ATTRIBUTE (rise);
CHECK_ATTRIBUTE (variant);