PDA

View Full Version : Changing size of text


stewart
04-06-2007, 03:00 PM
I've tried pretty much every combination of fontheight elements and i just can't get the last line of text to change size. What am i missing?

<Layer level="OVERLAY">
<FontString name="$parentBMexplain" inherits="GameFontNormal" text="Attunement by completing the Escort">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="50" y="-70"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentBMexplain2" inherits="GameFontNormal" text="Thrall quest in CoT: Durnholde">
<FontHeight><RelValue x="2"/></FontHeight>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="50" y="-90"/>
</Offset>
</Anchor>
</Anchors>
<color r="1" g="1" b="1"/>

</FontString>
</Layer>


(obviously the rest of the xml is there, but this is just a chunk from the middle)

Jumpy
04-06-2007, 09:54 PM
I don't know anything about this but I looked in the Font xml in the FrameXML folder and I see in GameFontNormal

<FontHeight><AbsValue val="12"/></FontHeight>

where val = height in pixels. I doubt a font can only be 2 pixels high. Try a different, higher value, maybe 8?

<FontHeight><AbsValue val="8"/></FontHeight>

Jumpy
04-06-2007, 11:10 PM
I don't know anything about this but I looked in the Font xml in the FrameXML folder and I see in GameFontNormal

<FontHeight><AbsValue val="12"/></FontHeight>

where val = height in pixels. I doubt a font can only be 2 pixels high. Try a different, higher value, maybe 8?

<FontHeight><AbsValue val="8"/></FontHeight>

or use GameFontNormalSmall

stewart
05-06-2007, 12:06 AM
i tried every value from 10-2 just in case the difference was just too small for me to notice as i was changing it. Will try GamFontNormalSmall, thanks

EDIT:
GameFontNormalSmall works great thanks

Wodgar
06-06-2007, 09:10 PM
You could also define your own font with its own custom size, and then use that instead of a game provided one...