You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: