Setting font sizes in xml

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
Sarev0k
Just popping in
Just popping in
Posts: 6
Joined: Fri Feb 18, 2005 00:36
Contact:

Setting font sizes in xml

Postby Sarev0k » Fri Feb 18, 2005 00:40

I'm trying to change the size of the font in my static text element, but for some reason the static text shows up fine, but the font doesn't appear at the size I specify.

Code: Select all

<Window Type="TaharezLook/StaticText" Name="SinglePlayer/Title">
   <Property Name="Position" Value="x:0.07 y:0.02" />
   <Property Name="Size" Value="w:0.6 h:0.06" />
   <Property Name="HorzFormatting" Value="HorzCentred" />
   <Property Name="BackgroundEnabled" Value="False" />
   <Property Name="FrameEnabled" Value="False" />
   <Property Name="Font" Value="Tahoma-20" />
   <Property Name="Text" Value="Single Player" />
</Window>


Any ideas of what I'm doing wrong? And is there some sort of document I can look or some dtd for the xml that will tell me exactly what elements there are and what properties are associated with them?

Thanks

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Setting font sizes in xml

Postby spannerman » Fri Feb 18, 2005 09:07

Could you post the code where you are changing the font size? In case you dont know, you define a font size using the font itself, and then apply that font to the StaticText.

API reference

Hope that helps.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests