From 1c2f1da3eb2541f1c8dbd50acb3a916939c99d3e Mon Sep 17 00:00:00 2001 From: Jamie Lemon Date: Thu, 21 Sep 2023 10:00:16 +0100 Subject: [PATCH] Fixes a typo in annot.rst. --- docs/annot.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/annot.rst b/docs/annot.rst index 319a143be..5f495d7c7 100644 --- a/docs/annot.rst +++ b/docs/annot.rst @@ -236,7 +236,7 @@ There is a parent-child relationship between an annotation and its page. If the :arg str name: the new name. - .. caution:: If you set the name of a 'Stamp' annotation, then this will **not change** the rectangle, nor will the text be layouted in any way. If you choose a standard text from :ref:`StampIcons` (the **exact** name piece after `"STAMP_"`), you should receive the original layout. An **arbitrary text** will not be changed to upper case, but be written in font "Times-Bold" as is, horizontally centered in **one line** and be shortened to fit. To get your text fully displayed, its length using :data:`fontsize` 20 must not exceed 190 pixels. So please make sure that the following inequality is true: `fitz.get_text_length(text, fontname="tibo", fontsize=20) <= 190`. + .. caution:: If you set the name of a 'Stamp' annotation, then this will **not change** the rectangle, nor will the text be layouted in any way. If you choose a standard text from :ref:`StampIcons` (the **exact** name piece after `"STAMP_"`), you should receive the original layout. An **arbitrary text** will not be changed to upper case, but be written in font "Times-Bold" as is, horizontally centered in **one line** and be shortened to fit. To get your text fully displayed, its length using :data:`fontsize` 20 must not exceed 190 points. So please make sure that the following inequality is true: `fitz.get_text_length(text, fontname="tibo", fontsize=20) <= 190`. .. method:: set_rect(rect)