I'm developing a plugin that has a textbox control. In my plugin skin I am specifying <font>font18</font> for the control, but it displays font13, which seems to be the default. This is confirmed by code in my plugin that displays the FontName of the control. I'm using the Blue3wide skin and placing my skin there. I've tried various fonts and am removing the fonts folder in the cache every time, but to no avail.
The only way I can get the font to change is by changing the attributes of font13 in fonts.xml.
Anyone know why changing the <font> attribute in my skin is not working?
Here's the XML:
<control>
<description>menu text</description>
<type>textbox</type>
<id>6</id>
<font>font18</font>
<posX>125</posX>
<posY>65</posY>
<width>1030</width>
<height>600</height>
<spinWidth>16</spinWidth>
<spinHeight>16</spinHeight>
<spinPosX>610</spinPosX>
<spinPosY>530</spinPosY>
<spinColor>ffffffff</spinColor>
<textureUp>page_up_nofocus.png</textureUp>
<textureDown>page_down_nofocus.png</textureDown>
<textureUpFocus>page_up_focus.png</textureUpFocus>
<textureDownFocus>page_down_focus.png</textureDownFocus>
<image>icon-folder.png</image>
<font>font13</font>
<textcolor>ffffffff</textcolor>
<textalign>left</textalign>
<label>#plot</label>
</control>
and this is the definition of the control in my code:
[SkinControlAttribute(6)]
protected GUITextControl menuText = null;
The only way I can get the font to change is by changing the attributes of font13 in fonts.xml.
Anyone know why changing the <font> attribute in my skin is not working?
Here's the XML:
<control>
<description>menu text</description>
<type>textbox</type>
<id>6</id>
<font>font18</font>
<posX>125</posX>
<posY>65</posY>
<width>1030</width>
<height>600</height>
<spinWidth>16</spinWidth>
<spinHeight>16</spinHeight>
<spinPosX>610</spinPosX>
<spinPosY>530</spinPosY>
<spinColor>ffffffff</spinColor>
<textureUp>page_up_nofocus.png</textureUp>
<textureDown>page_down_nofocus.png</textureDown>
<textureUpFocus>page_up_focus.png</textureUpFocus>
<textureDownFocus>page_down_focus.png</textureDownFocus>
<image>icon-folder.png</image>
<font>font13</font>
<textcolor>ffffffff</textcolor>
<textalign>left</textalign>
<label>#plot</label>
</control>
and this is the definition of the control in my code:
[SkinControlAttribute(6)]
protected GUITextControl menuText = null;