Hi
Is there a way to get the bounding rectangle of some text.. i mean i want to create a generic message box..i also want that wen the constructor of the message box receives some text it should automatically resize itself according to the text size. (ofcourse the font size will also play a role in this)
bounding rect of text
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: bounding rect of text
Look at
Font::getFormattedLineCount and Font::getFormattedTextExtent
Though you might find a catch-22 situation because the space occupied by a given text will be determined by the area in which you render it and the formatting used.
Font::getFormattedLineCount and Font::getFormattedTextExtent
Though you might find a catch-22 situation because the space occupied by a given text will be determined by the area in which you render it and the formatting used.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests