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

Function CheckFont

src/__init__.py:22035–22040  ·  view source on GitHub ↗

Return an entry in the page's font list if reference name matches.

(page: Page, fontname: str)

Source from the content-addressed store, hash-verified

22033
22034
22035def CheckFont(page: Page, fontname: str) -> tuple:
22036 """Return an entry in the page's font list if reference name matches.
22037 """
22038 for f in page.get_fonts():
22039 if f[4] == fontname:
22040 return f
22041
22042
22043def CheckFontInfo(doc: Document, xref: int) -> list:

Callers 1

insert_fontMethod · 0.85

Calls 1

get_fontsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…