Skip to content

Commit d1a2f3b

Browse files
committed
Add DejaVu as default font
Add DejaVu as default font change other mentions to default font to DejaVu modify rcsetup and rc template add DejaVu to seaborn styles and examples
1 parent 6a5df0b commit d1a2f3b

25 files changed

+125
-22
lines changed

examples/pylab_examples/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ax = plt.subplot(111, axisbg='y')
1919
plt.plot(t, x)
2020
plt.text(0.5, 0.5, 'matplotlib', color='r',
21-
fontsize=40, fontname=['Courier', 'Bitstream Vera Sans Mono'],
21+
fontsize=40, fontname=['Courier', 'DejaVu Sans Mono'],
2222
horizontalalignment='center',
2323
verticalalignment='center',
2424
transform=ax.transAxes,

examples/pylab_examples/text_handles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def f(t):
2525
xtext = plt.xlabel('time (s)')
2626

2727
plt.setp(ttext, size='large', color='r', style='italic')
28-
plt.setp(xtext, size='medium', name=['Courier', 'Bitstream Vera Sans Mono'],
28+
plt.setp(xtext, size='medium', name=['Courier', 'DejaVu Sans Mono'],
2929
weight='bold', color='g')
30-
plt.setp(ytext, size='medium', name=['Helvetica', 'Bitstream Vera Sans'],
30+
plt.setp(ytext, size='medium', name=['Helvetica', 'DejaVu Sans'],
3131
weight='light', color='b')
3232
plt.show()

lib/matplotlib/font_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ def __init__(self, size=None, weight='normal'):
10681068

10691069
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
10701070
self.defaultFamily = {
1071-
'ttf': 'Bitstream Vera Sans',
1071+
'ttf': 'DejaVu Sans',
10721072
'afm': 'Helvetica'}
10731073
self.defaultFont = {}
10741074

@@ -1251,7 +1251,7 @@ def findfont(self, prop, fontext='ttf', directory=None,
12511251
font is given a similarity score to the target font
12521252
properties. The first font with the highest score is
12531253
returned. If no matches below a certain threshold are found,
1254-
the default font (usually Vera Sans) is returned.
1254+
the default font (usually DejaVu Sans) is returned.
12551255
12561256
`directory`, is specified, will only return fonts from the
12571257
given directory (or subdirectory of that directory).
@@ -1260,7 +1260,7 @@ def findfont(self, prop, fontext='ttf', directory=None,
12601260
perform the O(n) nearest neighbor search.
12611261
12621262
If `fallback_to_default` is True, will fallback to the default
1263-
font family (usually "Bitstream Vera Sans" or "Helvetica") if
1263+
font family (usually "DejaVu Sans" or "Helvetica") if
12641264
the first lookup hard-fails.
12651265
12661266
See the `W3C Cascading Style Sheet, Level 1
688 KB
Binary file not shown.
627 KB
Binary file not shown.
619 KB
Binary file not shown.
738 KB
Binary file not shown.
324 KB
Binary file not shown.
247 KB
Binary file not shown.
246 KB
Binary file not shown.

0 commit comments

Comments
 (0)