How to setting font size to target style.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

celest_3rd
Just popping in
Just popping in
Posts: 6
Joined: Sat May 10, 2008 18:00

How to setting font size to target style.

Postby celest_3rd » Sat May 10, 2008 18:09

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon May 19, 2008 08:27

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests