Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c92a7d2

Browse files
committed
Fixed (some?) paths to fonts (because of the changes to the mpl-data dir)
svn path=/trunk/matplotlib/; revision=3475
1 parent 6715f4c commit c92a7d2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/font_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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'
1313
font = FT2Font(fname)
1414
font.set_charmap(0)
1515

examples/ftface_props.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from 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

1515
font = FT2Font(fname)

examples/glyph_to_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def glyph_to_agg_path(glyph):
2929
return path
3030

3131
width, 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')
3333
font = FT2Font(fname)
3434
glyph = font.load_char(ord('y'))
3535
path = glyph_to_agg_path(glyph)

0 commit comments

Comments
 (0)