Hey guys. I've been looking over the API reference and I was wondering if there is a way to change the overall text size in a window? I didn't see anything in the API reference on changing text size. Any information on this would be extremely helpful.
-EDarkness
Changing font size in an multilineeditbox or statictext wind
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Changing font size in an multilineeditbox or statictext
To change the text size you create a font with the required point size and set it as the active font for the window(s) that you want to use the new sized font.
This can be done by creating sets of font xml files, or more directly in code via the appropriate 'createFont' overload.
There is currently no way to 'resize' a font as such, however there is support to scale text output - though this is an advanced feature and is not used internally by the library, but is intended for client code to use if they require such abilities (this is the 'scale' parameter which is optional for most of the font based API).
So, basically you need to create a bunch of fonts that you want to use
This can be done by creating sets of font xml files, or more directly in code via the appropriate 'createFont' overload.
There is currently no way to 'resize' a font as such, however there is support to scale text output - though this is an advanced feature and is not used internally by the library, but is intended for client code to use if they require such abilities (this is the 'scale' parameter which is optional for most of the font based API).
So, basically you need to create a bunch of fonts that you want to use
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 5 guests