diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-08-14 22:51:46 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-08-14 22:58:15 -0400 |
commit | 194f4668b32a86993d969bccfed59186c08f63dd (patch) | |
tree | 1421677f952943123386feaad0dd0a52c2d88973 /docs | |
parent | c9809629caf8ceda767b81b1aacfb045e3514119 (diff) | |
download | pango-194f4668b32a86993d969bccfed59186c08f63dd.tar.gz |
Allow rgba colors in markup
For foreground and background colors, allow #rrggbbaa to specify
a color with alpha. This will be returned as two attributes, for
color and alpha. underline_color and strikethrough_color are still
limited to #rrggbb, with no alpha component.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pango_markup.sgml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/pango_markup.sgml b/docs/pango_markup.sgml index 8fa38c42..c2ba377c 100644 --- a/docs/pango_markup.sgml +++ b/docs/pango_markup.sgml @@ -136,8 +136,10 @@ syntax as accepted by CSS. E.g: <literal>font_features='dlig=1, -kern, afrc on'< <term>fgcolor<footnoteref linkend='since_1_21'/></term> <term>color</term> <listitem><para> -An RGB color specification such as '#00FF00' or a color name such as -'red' +An RGB color specification such as '#00FF00' or a color name such as +'red'. +Since 1.38, an RGBA color specification such as '#00FF007F' will +be interpreted as specifying both a foreground color and foreground alpha. </para></listitem> </varlistentry> @@ -145,8 +147,10 @@ An RGB color specification such as '#00FF00' or a color name such as <term>background</term> <term>bgcolor<footnoteref linkend='since_1_21'/></term> <listitem><para> -An RGB color specification such as '#00FF00' or a color name such as -'red' +An RGB color specification such as '#00FF00' or a color name such as +'red'. +Since 1.38, an RGBA color specification such as '#00FF007F' will +be interpreted as specifying both a background color and background alpha. </para></listitem> </varlistentry> |