summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-08 01:22:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-08 10:38:02 -0400
commit90b289bba8492e8de2373a23e3023bba70df69bc (patch)
tree224a4f8fa52dc4ef292eaf4edfc31d9ab9fbe7e0 /docs
parent1f262e416a2d33265539e423ab5de28895379adf (diff)
downloadpango-90b289bba8492e8de2373a23e3023bba70df69bc.tar.gz
markup: Allow specifying size in pt
Accept values like 12.5pt, in addition to the other ways of specifying font size in markup. Fixes: #67
Diffstat (limited to 'docs')
-rw-r--r--docs/pango_markup.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/pango_markup.md b/docs/pango_markup.md
index 8291dc3c..5f72dc98 100644
--- a/docs/pango_markup.md
+++ b/docs/pango_markup.md
@@ -77,11 +77,13 @@ face
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'; you can use font='12.5' rather than size='12800'.
+: Font size in 1024ths of a point, or in points (e.g. '12.5pt'), 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'; you can use
+ font='12.5' rather than size='12800' or size='12.5pt'.
+ Support for specifying font sizes in points was added in Pango 1.50.
font_style
style