Page 1 of 1

Changing font size in an multilineeditbox or statictext wind

Posted: Thu Sep 01, 2005 14:33
by EDarkness
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

Re: Changing font size in an multilineeditbox or statictext

Posted: Thu Sep 01, 2005 17:37
by CrazyEddie
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 :)