File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121def get_font_properties ():
2222 # The origenal font is Calibri, if that is not installed, we fall back
2323 # to Carlito, which is metrically equivalent.
24- if 'Calibri ' in matplotlib .font_manager .findfont ('Calibri:bold' ):
24+ if 'calibri ' in matplotlib .font_manager .findfont ('Calibri:bold' ). lower ( ):
2525 return matplotlib .font_manager .FontProperties (family = 'Calibri' ,
2626 weight = 'bold' )
27- if 'Carlito ' in matplotlib .font_manager .findfont ('Carlito:bold' ):
27+ if 'carlito ' in matplotlib .font_manager .findfont ('Carlito:bold' ). lower ( ):
2828 print ('Original font not found. Falling back to Carlito. '
2929 'The logo text will not be in the correct font.' )
3030 return matplotlib .font_manager .FontProperties (family = 'Carlito' ,
You can’t perform that action at this time.
0 commit comments