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

Improved word wrapping support using ICU #471

Open
slouken opened this issue Jan 27, 2025 · 0 comments
Open

Improved word wrapping support using ICU #471

slouken opened this issue Jan 27, 2025 · 0 comments
Milestone

Comments

@slouken
Copy link
Collaborator

slouken commented Jan 27, 2025

Sunforest — 1/24/25, 6:27 PM
Looking at my notes the other blocker I appeared to have was that there doesn't appear to be a robust line breaking algorithm inside SDL_ttf. Is word wrapping within scope of the library or is are users supposed to do their own word wrapping somehow with the existing API? E.g. Japanese requires a dictionary-based wrapping algorithm and the dictionaries are unfortunately quite massive in size.
Currently I rely on ICU to provide word wrapping functionality.

Search for instances of "ubrk" in https://github.com/godotengine/godot/blob/master/modules/text_server_adv/text_server_adv.cpp . The ICU "support data" is also important here which is loaded in that file but generated elsewhere. I never figured out how to generate it myself.

@slouken slouken added this to the 3.x milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant