Changing font size in an multilineeditbox or statictext wind

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
EDarkness
Just popping in
Just popping in
Posts: 11
Joined: Wed Jul 20, 2005 19:57

Changing font size in an multilineeditbox or statictext wind

Postby EDarkness » Thu Sep 01, 2005 14:33

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

User avatar
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

Postby CrazyEddie » Thu Sep 01, 2005 17:37

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 :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests