Page 1 of 1

How to setting font size to target style.

Posted: Sat May 10, 2008 18:09
by celest_3rd
Image

How can I setting xml attributes or other way to display "target" font style.
Can CEGUI set font height by pixel scale ? or point scale only ?

Thanks for advanced.

Posted: Mon May 19, 2008 08:27
by CrazyEddie
Hi,

I don't understand the question completely, but will try my best...

For freetype based fonts (those with an associated TTF file, or whatever) then the size is always specified as point size.

As far as "style" goes, I do not really understand; do you mean things such as bold and italic? If so, these are actually attributes of the ttf font itself - so you need appropriate versions of the font. I know that operating systems get around this and 'fake' it where a real font with the required style is not available, though at the moment we do not have such an ability.

If this is not what you meant, please let us know :)

CE.