From 90b289bba8492e8de2373a23e3023bba70df69bc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 8 Aug 2021 01:22:14 -0400 Subject: 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 --- docs/pango_markup.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'docs') 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 -- cgit v1.2.1