Word wrap cutting off words in MyGUI 3.0.1


23-06-2011 14:05:46


I am having a problem with word wrap cutting off words in MyGUI 3.0.1. I get the same results as the image in this post:


My layout is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="StaticImage" skin="StaticImage" position_real="0 0 0.625 0.0416667" layer="Back" name="leaf.background">
<Widget type="Button" skin="ButtonSquare" position_real="0.00625 0.1875 0.0265625 0.625" name="leaf.button"/>
<Widget type="Edit" skin="WordWrap" position_real="0.0578125 0 0.928125 1" name="leaf.text">
<Property key="Text_TextAlign" value="Left VCenter"/>
<Property key="Edit_MultiLine" value="true"/>
<Property key="Edit_Static" value="true"/>
<Property key="Edit_WordWrap" value="true"/>
<Property key="Edit_OverflowToTheLeft" value="true"/>

This layout is parented to a scroll view after it is loaded. Also, after setting the text in the edit box, I adjust the height of the edit box if needed using Edit::getTextSize(). The width of the edit box must remain unchanged.

This is the font that I am using:

<Resource type="ResourceTrueTypeFont" name="font_Daishi">
<Property key="Source" value="verdana.ttf"/>
<Property key="Size" value="19"/>
<Property key="Resolution" value="50"/>
<Property key="Antialias" value="false"/>
<Property key="SpaceWidth" value="4"/>
<Property key="TabWidth" value="8"/>
<Property key="CursorWidth" value="2"/>
<Property key="Distance" value="6"/>
<Property key="OffsetHeight" value="0"/>
<Code range="33 125"/>

I have tried tampering with the values in the font XML and adjusting widget sizes in the layout, but nothing seems to fix the problem.

Thanks in advance!