Skip to content

Commit cfc0019

Browse files
committed
documentation update
1 parent 9b1e4ff commit cfc0019

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/font.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,15 @@ A Font object also contains useful general information, like the font bbox, the
261261

262262
*(New in v1.18.0)*
263263

264-
The ascender value of the font, see `here <https://en.wikipedia.org/wiki/Ascender_(typography)>`_ for details.
264+
The ascender value of the font, see `here <https://en.wikipedia.org/wiki/Ascender_(typography)>`_ for details. Please note that there is a difference to the strict definition: our value includes everything above the baseline -- not just the height difference between upper case "A" and and lower case "a".
265265

266266
:rtype: float
267267

268268
.. attribute:: descender
269269

270270
*(New in v1.18.0)*
271271

272-
The descender value of the font, see `here <https://en.wikipedia.org/wiki/Descender>`_ for details.
272+
The descender value of the font, see `here <https://en.wikipedia.org/wiki/Descender>`_ for details. This value always is negative and is the portion that some glyphs descend below the base line, for example "g" or "y". As a consequence, the value ``ascender - descender`` is the total height, that every glyph of the font fits into. This is true at least for most fonts -- as always, there are exceptions, especially for calligraphic fonts, etc.
273273

274274
:rtype: float
275275

docs/textpage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Spans contain the actual text. A line contains **more than one span only**, if i
237237
**Key** **Value**
238238
=============== =====================================================================
239239
bbox span rectangle, formatted as *tuple(fitz.Rect)*
240-
origin *tuple* coordinates of the first character's bottom left point
240+
origin *tuple* coordinates of the first character's origin
241241
font font name *(str)*
242242
ascender ascender of the font *(float)*
243243
descender descender of the font *(float)*
@@ -296,13 +296,13 @@ We are currently providing the bbox in :data:`rect_like` format. In a future ver
296296
:align: top
297297
:scale: 66
298298

299-
=============== =========================================================
299+
=============== ===========================================================
300300
**Key** **Value**
301-
=============== =========================================================
302-
origin *tuple* coordinates of the character's bottom left point
301+
=============== ===========================================================
302+
origin *tuple* coordinates of the character's left baseline point
303303
bbox character rectangle, formatted as *tuple(fitz.Rect)*
304304
c the character (unicode)
305-
=============== =========================================================
305+
=============== ===========================================================
306306

307307
.. rubric:: Footnotes
308308

0 commit comments

Comments
 (0)