MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / JM_font_ascender

Function JM_font_ascender

src/__init__.py:19406–19413  ·  view source on GitHub ↗

need own versions of ascender / descender

(font)

Source from the content-addressed store, hash-verified

19404
19405
19406def JM_font_ascender(font):
19407 '''
19408 need own versions of ascender / descender
19409 '''
19410 assert isinstance(font, mupdf.FzFont)
19411 if _globals.skip_quad_corrections:
19412 return 0.8
19413 return mupdf.fz_font_ascender(font)
19414
19415
19416def JM_font_descender(font):

Callers 3

JM_char_quadFunction · 0.85
JM_make_spanlistFunction · 0.85
jm_trace_text_spanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…