Skip to content
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

Does pygbag support any Chinese fonts? #178

Open
pzy2000 opened this issue Sep 17, 2024 · 1 comment
Open

Does pygbag support any Chinese fonts? #178

pzy2000 opened this issue Sep 17, 2024 · 1 comment
Labels

Comments

@pzy2000
Copy link

pzy2000 commented Sep 17, 2024

I tried to check with print("font", pygame.font.get_fonts()), but it seems that print info will not show on the web console.

@pmp-p
Copy link
Member

pmp-p commented Sep 22, 2024

you need to provide fonts in assets, and load them manually before use. See a test with arabic font here https://pygame-web.github.io/showroom/pypad_git.html#src/test_hb.py

ref: #111

@pmp-p pmp-p added the usage label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants