summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-12 22:53:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-06-22 13:54:02 -0400
commit99edfcbb6c0f1bc34fcb595048ea7b47f85b4378 (patch)
tree0d6966b230cb905329040d0733504b001876042d /docs
parent06dcb2a65177282d5ad09a855f5169edeef3b8f5 (diff)
downloadpango-99edfcbb6c0f1bc34fcb595048ea7b47f85b4378.tar.gz
Add alpha to PangoColor
Adapt all users. This drops the alpha attributes and alpha in markup, and adds alpha support to underlines, overlines and strikethroughs.
Diffstat (limited to 'docs')
-rw-r--r--docs/pango_markup.md29
1 files changed, 6 insertions, 23 deletions
diff --git a/docs/pango_markup.md b/docs/pango_markup.md
index 909c1a39..734829c0 100644
--- a/docs/pango_markup.md
+++ b/docs/pango_markup.md
@@ -83,8 +83,6 @@ size
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'; you can use
font='12.5' rather than size='12800' or size='12.5pt'.
- Support for specifying font sizes in points or as percentages was added in
- Pango 1.50.
font_style
style
@@ -113,44 +111,29 @@ font_features
foreground
fgcolor
color
-: 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.
+: An RGBA color specification such as '#00FF007F' or a color name such as 'red'.
background
bgcolor
-: 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.
-
-alpha
-fgalpha
-: An alpha value for the foreground color, either a plain integer between 1 and
- 65536 or a percentage value like '50%'.
-
-background_alpha
-bgalpha
-: An alpha value for the background color, either a plain integer between 1 and
- 65536 or a percentage value like '50%'.
+: An RGBA color specification such as '#00FF007F' or a color name such as 'red'.
underline
: One of 'none', 'single', 'double', 'low', 'error'.
underline_color
-: The color of underlines; an RGB color specification such as '#00FF00' or a color
+: The color of underlines; an RGBA color specification such as '#00FF007F' or a color
name such as 'red'.
overline
: One of 'none' or 'single'. Overline support was added in Pango 1.46.
overline_color
-: The color of overlines; an RGB color specification such as '#00FF00' or a color
- name such as 'red'. Overline support was added in Pango 1.46.
+: The color of overlines; an RGBA color specification such as '#00FF007F' or a color
+ name such as 'red'.
rise
: Vertical displacement, in Pango units or in points (e.g. '5pt'). Can be
negative for subscript, positive for superscript.
- Support for specifying rise in points was added in Pango 1.50.
baseline_shift
: Vertical displacement. In contrast to rise, baseline_shift attributes are cumulative.
@@ -166,7 +149,7 @@ strikethrough
: 'true' or 'false' whether to strike through the text.
strikethrough_color
-: The color of strikethrough lines; an RGB color specification such as '#00FF00'
+: The color of strikethrough lines; an RGBA color specification such as '#00FF007F'
or a color name such as 'red'.
fallback