pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
862 stars 141 forks source link

wasm: unify pygame-web/pyodide/static Freetype init #2748

Closed pmp-p closed 6 months ago

pmp-p commented 6 months ago

both pygbag and pyodide benefit from that change see https://github.com/pyodide/pyodide/pull/4602#pullrequestreview-1928005211

part of the change already was in anyway https://github.com/pygame-community/pygame-ce/blob/be55232410cb33391be23d0a279ec2632d75820e/src_c/font.c#L71 and the other part was in a patch applied by pygbag because the draft https://github.com/pygame-community/pygame-ce/pull/1967 was incomplete.

oddbookworm commented 6 months ago

@pmp-p Your CI failure is due to TTF_Init not being available. https://github.com/pygame-community/pygame-ce/actions/runs/8237122349/job/22525122282?pr=2748#step:7:231

pmp-p commented 6 months ago

weird with the lastest sdk it builds locally, now i'm not sure i want to upgrade the one from the CI which seems more sane :)