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

Function JM_char_font_flags

src/__init__.py:18797–18805  ·  view source on GitHub ↗
(font, line, ch)

Source from the content-addressed store, hash-verified

18795
18796
18797def JM_char_font_flags(font, line, ch):
18798 flags = 0
18799 if line and ch:
18800 flags += detect_super_script(line, ch)
18801 flags += mupdf.fz_font_is_italic(font) * TEXT_FONT_ITALIC
18802 flags += mupdf.fz_font_is_serif(font) * TEXT_FONT_SERIFED
18803 flags += mupdf.fz_font_is_monospaced(font) * TEXT_FONT_MONOSPACED
18804 flags += mupdf.fz_font_is_bold(font) * TEXT_FONT_BOLD
18805 return flags
18806
18807
18808def JM_char_quad(line, ch):

Callers 1

JM_make_spanlistFunction · 0.85

Calls 1

detect_super_scriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…