File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010
1111#fname = '/usr/share/fonts/sfd/FreeSans.ttf'
12- fname = matplotlib .get_data_path () + '/Vera.ttf'
12+ fname = matplotlib .get_data_path () + '/fonts/ttf/ Vera.ttf'
1313font = FT2Font (fname )
1414font .set_charmap (0 )
1515
Original file line number Diff line number Diff line change 99from matplotlib .ft2font import FT2Font
1010
1111#fname = '/usr/local/share/matplotlib/VeraIt.ttf'
12- fname = matplotlib .get_data_path () + '/VeraIt.ttf'
12+ fname = matplotlib .get_data_path () + '/fonts/ttf/ VeraIt.ttf'
1313#fname = '/usr/local/share/matplotlib/cmr10.ttf'
1414
1515font = FT2Font (fname )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def glyph_to_agg_path(glyph):
2929 return path
3030
3131width , height = 300 ,300
32- fname = os .path .join (matplotlib .get_data_path (), 'Vera.ttf' )
32+ fname = os .path .join (matplotlib .get_data_path (), 'fonts/ttf/ Vera.ttf' )
3333font = FT2Font (fname )
3434glyph = font .load_char (ord ('y' ))
3535path = glyph_to_agg_path (glyph )
You can’t perform that action at this time.
0 commit comments