-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request SurfacePainter.textbox function to support system fonts #210
Comments
Please can you give an example of what you tried and what didn't work? |
Thank you for your reply.My English is not very good I hope you could understand what I say. |
I want to use pygame zero to render Chinese. Adding the Chinese font ttf file in the fonts folder can solve it, but the Chinese font file is relatively large, so it is very good to be able to use system fonts. So I added this feature in my own branch. The changes are relatively small and involve two files. |
Sounds good, yes, please. |
support lordmauve#210 modify two files loaders.py and ptext.py
Hi, I found SurfacePainter.textbox(screen.draw.textbox) function in screen.py doesn't support to use sysfontname.
I think modify drawbox function in ptext.py and getfont funtion in loaders.py could add support for sysfont. But it is difficult for me to pull a stable and compatible request to add this feature. Please consider adding that this function supports the use of system fonts. Thanks.
The text was updated successfully, but these errors were encountered: