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

Function subset_font

tools/subset.py:173–179  ·  view source on GitHub ↗
(font_in, font_out, unicodes, opts)

Source from the content-addressed store, hash-verified

171
172
173def subset_font(font_in, font_out, unicodes, opts):
174 font_out_raw = font_out
175 if not font_out_raw.endswith('.ttf'):
176 font_out_raw += '.ttf'
177 subset_font_raw(font_in, font_out_raw, unicodes, opts)
178 if font_out != font_out_raw:
179 os.rename(font_out_raw, font_out)
180# 2011-02-14 DC this needs to only happen with --namelist is used
181# os.rename(font_out_raw + '.name', font_out + '.name')
182

Callers 1

mainFunction · 0.85

Calls 1

subset_font_rawFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…