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

Function test_font2

tests/test_font.py:41–45  ·  view source on GitHub ↗

Old and new length computation must be the same.

()

Source from the content-addressed store, hash-verified

39
40
41def test_font2():
42 """Old and new length computation must be the same."""
43 font = pymupdf.Font("helv")
44 text = "PyMuPDF"
45 assert font.text_length(text) == pymupdf.get_text_length(text)
46
47
48def test_fontname():

Callers

nothing calls this directly

Calls 1

text_lengthMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…