Hey there,
I was just wondering how much functionality there is in the text rendering - I've come up to a point where I need text to fit within a box, and so I need text wrapping support. Is there any support for text wrapping with Orx or will I have to roll my own?
Thanks,
Sean
Comments
This functionnality is not yet in orx (it was the case few month ago, perhaps this is available now Iarwain ?).
You have to parse your string and use those functions : orxFont_GetCharacterWidth, orxString_GetFirstCharacterCodePoint, orxString_GetUTF8CharacterLength.
If you want more help, maybe I can help you, keep me inform.
Cheers.
As faistoiplaisir said, you'll pretty much have to roll your own.
The actual text-related features are more focusing on automated localization updates (if a text is using a localized string and/or font, those who'll get instantly updated as soon as you select another language).
Adding some box wrapping should be pretty straightforward and I'll try to add that soonish in orx, with maybe some flushing support.
Cheers,
Sean