Skip to content

Commit 6d2d934

Browse files
authored
explain why web docs use carlito
explain why the web docs are using the fallback, mostly to demystify why we're showing an example that is displaying an error like message.
1 parent 37502fa commit 6d2d934

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

galleries/examples/misc/logos2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def get_font_properties():
2424
if 'calibri' in matplotlib.font_manager.findfont('Calibri:bold').lower():
2525
return matplotlib.font_manager.FontProperties(family='Calibri',
2626
weight='bold')
27+
# Our website documentation uses Carlito because Calibri is proprietary.
2728
if 'carlito' in matplotlib.font_manager.findfont('Carlito:bold').lower():
2829
print('Original font not found. Falling back to Carlito. '
2930
'The logo text will not be in the correct font.')

0 commit comments

Comments
 (0)