[SOLVED] Different fonts in same layout

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

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

[SOLVED] Different fonts in same layout

Postby mrzli777 » Sun Feb 10, 2008 13:11

Hello again.

Can anyone tell me how to have different fonts in the same layout file?
For example, I want to have two StaticText controls, each with different font. I was looking and GUILayout_xmlHandler code and there doesn't seem to be element or attribute to define font for an instance of control in .layout file.

Thanks.
Last edited by mrzli777 on Sun Feb 10, 2008 17:32, edited 1 time in total.

jacobb
Just popping in
Just popping in
Posts: 2
Joined: Fri Feb 24, 2006 11:55

Postby jacobb » Sun Feb 10, 2008 15:59

<Property Name="Font" Value="YourFont" />

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Sun Feb 10, 2008 17:30

You're right. That was simple but I didn't see it.
Thanks.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests