MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / _get_font

Method _get_font

site-packages/matplotlib/textpath.py:41–49  ·  view source on GitHub ↗

find a ttf font.

(self, prop)

Source from the content-addressed store, hash-verified

39 return dviread.PsfontsMap(dviread.find_tex_file('pdftex.map'))
40
41 def _get_font(self, prop):
42 """
43 find a ttf font.
44 """
45 fname = font_manager.findfont(prop)
46 font = get_font(fname)
47 font.set_size(self.FONT_SCALE, self.DPI)
48
49 return font
50
51 def _get_hinting_flag(self):
52 return LOAD_NO_HINTING

Callers 3

get_text_pathMethod · 0.95

Calls 3

get_fontFunction · 0.90
findfontMethod · 0.80
set_sizeMethod · 0.45

Tested by

no test coverage detected