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

Skip to content

Commit aaef944

Browse files
committed
Fix another linux3 bug reported by Tiago Rezende Campos Falcão
1 parent d9ca8ba commit aaef944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/api/font_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
if sys.platform == 'win32':
1919
fpath = 'C:\\Windows\\Fonts\\Tahoma.ttf'
20-
elif sys.platform == 'linux2':
20+
elif sys.platform.startswith('linux'):
2121
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf',
2222
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf',
2323
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf',

0 commit comments

Comments
 (0)