以下内容对我来说很好,并且这个词是否正确,因为thelazydogsPackmyboxwithfive
当它不适合它时它会向下移动一行。
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face{
src:url("Knights Quest.ttf");
fontFamily: MyF;
embedAsCFF: true;
}
.myFont
{
fontFamily: MyF;
fontSize:20px;
}
</fx:Style>
<s:BorderContainer id="box" width="400" height="200">
</s:BorderContainer>
<s:Label text="the quick brown fox jumped over thelazydogsPackmyboxwithfive dozen liquor jugs." width="400" styleName="myFont" />
</s:Application>
这是它的外观: