Page 1 of 1

Setting font sizes in xml

Posted: Fri Feb 18, 2005 00:40
by Sarev0k
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

Re: Setting font sizes in xml

Posted: Fri Feb 18, 2005 09:07
by spannerman
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.