pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
335 stars 39 forks source link

Does pygbag support any Chinese fonts? #178

Closed pzy2000 closed 1 month ago

pzy2000 commented 1 month ago

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 commented 1 month ago

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: https://github.com/pygame-web/pygbag/issues/111

pzy2000 commented 1 month ago

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

thx a lot!