Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85564e commit 37502faCopy full SHA for 37502fa
1 file changed
galleries/examples/misc/logos2.py
@@ -21,10 +21,10 @@
21
def get_font_properties():
22
# The original font is Calibri, if that is not installed, we fall back
23
# to Carlito, which is metrically equivalent.
24
- if 'Calibri' in matplotlib.font_manager.findfont('Calibri:bold'):
+ if 'calibri' in matplotlib.font_manager.findfont('Calibri:bold').lower():
25
return matplotlib.font_manager.FontProperties(family='Calibri',
26
weight='bold')
27
- if 'Carlito' in matplotlib.font_manager.findfont('Carlito:bold'):
+ if 'carlito' in matplotlib.font_manager.findfont('Carlito:bold').lower():
28
print('Original font not found. Falling back to Carlito. '
29
'The logo text will not be in the correct font.')
30
return matplotlib.font_manager.FontProperties(family='Carlito',
0 commit comments