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

Function UpdateFontInfo

src/__init__.py:22162–22172  ·  view source on GitHub ↗
(doc: Document, info: typing.Sequence)

Source from the content-addressed store, hash-verified

22160
22161
22162def UpdateFontInfo(doc: Document, info: typing.Sequence):
22163 xref = info[0]
22164 found = False
22165 for i, fi in enumerate(doc.FontInfos):
22166 if fi[0] == xref:
22167 found = True
22168 break
22169 if found:
22170 doc.FontInfos[i] = info
22171 else:
22172 doc.FontInfos.append(info)
22173
22174
22175def args_match(args, *types):

Callers 2

get_char_widthsMethod · 0.85
get_char_widthsFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…