Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
fopen() fails on Windows for non-ANSI characters #645
I use windows 10 with a Chinese username '运城国际学校', the desktop dir will display as "C:\Users\运城国~1\Desktop" in command line or use
While I try to load a font file which store in this path by:
I got this error [OSError: unable to read font file 'C:\Users\运城国~1\Desktop\Test\test.ttf']
I can use
Since I can load images, audios from the same UTF-8 path, except fonts. Maybe there are different ways to location file between load image / audios and load fonts?
I have to use this UTF-8 path, because I want to package my game with Pyinstaller. It will automaticly extract everything to Temp directory which is in user's home directory.
changed the title
Failed to load font from file while use a long Chinese username in Windows
Nov 28, 2018
This was referenced
Nov 29, 2018
if you're on windows you can download from the appveyor page: https://ci.appveyor.com/project/pygame/pygame
Compiling it yourself is very easy on other platforms.