From 451d5a70fe771cf19e570e9896ad566239974ece Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 21 Apr 2008 21:26:33 +0000 Subject: =?UTF-8?q?Bug=20490669=20=E2=80=93=20add=20some=20=20attrib?= =?UTF-8?q?ute=20aliases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-04-21 Behdad Esfahbod Bug 490669 – add some 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 --- docs/pango_markup.sgml | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'docs/pango_markup.sgml') diff --git a/docs/pango_markup.sgml b/docs/pango_markup.sgml index ba96a9db..0c992a43 100644 --- a/docs/pango_markup.sgml +++ b/docs/pango_markup.sgml @@ -46,7 +46,9 @@ general markup tag is <span>, then there are some convenience tags. <span> has the following attributes: <span> attributes -font_desc + +font +font_desc A font description string, such as "Sans Italic 12". See pango_font_description_from_string() @@ -56,51 +58,57 @@ other span attributes will override this description. So if you have not italic. -font_family + +font_family +face A font family name -face - -Synonym for font_family - - - -size + +font_size +size Font size in 1024ths of a point, or one of the absolute sizes 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', or one of the relative sizes 'smaller' or 'larger'. If you want to specify a absolute size, it's usually easier to take advantage of the ability to specify a partial -font description using 'font_desc'; you can use -font_desc='12.5' rather than +font description using 'font'; you can use +font='12.5' rather than size='12800'. -style + +font_style +style One of 'normal', 'oblique', 'italic' -weight + +font_weight +weight One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold', 'heavy', or a numeric weight -variant + +font_variant +variant -'normal' or 'smallcaps' +One of 'normal' or 'smallcaps' -stretch + +font_stretch +stretch One of 'ultracondensed', 'extracondensed', 'condensed', 'semicondensed', 'normal', 'semiexpanded', 'expanded', @@ -108,14 +116,19 @@ One of 'ultracondensed', 'extracondensed', 'condensed', -foreground + +foreground +fgcolor +color An RGB color specification such as '#00FF00' or a color name such as 'red' -background + +background +bgcolor An RGB color specification such as '#00FF00' or a color name such as 'red' -- cgit v1.2.1