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

PyBag/Android porting #408

Open
MyreMylar opened this issue Feb 26, 2023 · 2 comments
Open

PyBag/Android porting #408

MyreMylar opened this issue Feb 26, 2023 · 2 comments

Comments

@MyreMylar
Copy link
Owner

See: pygame-web/pkg-porting-wasm#1

I know this has also been an issue with android. the freetype submodule just doesn't work very well outside the core platforms. With pygame.font adding new harfbuzz features allowing support for new languages - moving back to pygame.font is a priority.

@MyreMylar MyreMylar added bug Something isn't working compatability labels Feb 26, 2023
@MyreMylar MyreMylar added this to the Version 0.7.0 milestone Feb 26, 2023
@tigercoding56
Copy link

so i think to start with it would be a good idea to make a list of related code (code that may need change to facilitate pygame-web)
I'll start

https://github.com/MyreMylar/pygame_gui/blob/823474c31191116fe13fd778e498c78f5774cadc/pygame_gui/core/ui_font_dictionary.py

@pmp-p
Copy link
Contributor

pmp-p commented Mar 2, 2023

Since porting is mostly a font issue for web and download font size too is also an issue for mobile connections.

i'd suggest to make a separate font loader and use "fonts packs" for the 4 letters code given to set_script

i think making a "pygame.i18n" module would be benefecial to everyone : and pygame_gui is the ideal sandbox for making that happen.

i18n would:
-download a font pack for a code [async]
-preload all localized string ( maybe download them too ) [async]
if success:
-set the script
-monkey patch font.render to use a bidi algo.
else:
stay on C locale.

@MyreMylar MyreMylar removed the bug Something isn't working label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants