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

Function select_with_refs

tools/subset.py:44–56  ·  view source on GitHub ↗
(font, unicode, newfont, pe=None, name=None)

Source from the content-addressed store, hash-verified

42
43
44def select_with_refs(font, unicode, newfont, pe=None, name=None):
45 newfont.selection.select(('more', 'unicode'), unicode)
46 log_namelist(name, unicode)
47 if pe:
48 print(f"SelectMore({unicode})", file=pe)
49 try:
50 for ref in font[unicode].references:
51 newfont.selection.select(('more',), ref[0])
52 log_namelist(name, ref[0])
53 if pe:
54 print(f'SelectMore("{ref[0]}")', file=pe)
55 except Exception:
56 print(f'Resolving references on u+{unicode:04x} failed')
57
58
59def subset_font_raw(font_in, font_out, unicodes, opts):

Callers 1

subset_font_rawFunction · 0.85

Calls 2

log_namelistFunction · 0.85
selectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…