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 d9ca8ba commit aaef944Copy full SHA for aaef944
examples/api/font_file.py
@@ -17,7 +17,7 @@
17
18
if sys.platform == 'win32':
19
fpath = 'C:\\Windows\\Fonts\\Tahoma.ttf'
20
-elif sys.platform == 'linux2':
+elif sys.platform.startswith('linux'):
21
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf',
22
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf',
23
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf',
0 commit comments