-
-
Notifications
You must be signed in to change notification settings - Fork 194
Description
Issue №3432 opened by illume at 2022-08-28 17:54:11
So far seems sysfont runs but won't return anything. (I think)
https://github.com/pygame/pygame/pull/3225/files# diff-ce847b7a6780bf12cf5be3fa9bdb8d243af1d47ea2e1e2c6a1bc4dea21a9d1fcR201
Browsers usually have a lot of fonts available.
Comments
# # pmp-p commented at 2022-08-28 20:31:14
Browsers usually have a lot of fonts available.
but pygame cannot use browser fonts since it only use canvas. To use browser fonts you need Dom interfacing modules which are not default in CPython or pyodide, ( only pygbag loader they cannot be dynamically loaded )
it's possible to list the font on the host before packing files ( like pygbag packager does) or get the font list from a json file on server.
it would only be a matter of choosing which file holds it and its format ( the same as which is actually parserd would save some code), i think an ENV var like FC_LIST to point the file would be fine
I think the title is too restrictive as it can also help on android and embedded linux with no fc-* tools or restricted to single process