MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_afm_kerning

Function test_afm_kerning

lib/matplotlib/tests/test_afm.py:143–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142
143def test_afm_kerning():
144 fn = fm.findfont("Helvetica", fontext="afm")
145 with open(fn, 'rb') as fh:
146 afm = _afm.AFM(fh)
147 assert afm.get_kern_dist_from_name('A', 'V') == -70.0
148 assert afm.get_kern_dist_from_name('V', 'A') == -80.0

Callers

nothing calls this directly

Calls 2

findfontMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…