Flex 4中如何给Halo Label设置嵌入字体的例子

接下来的例子演示了Flex 4中如何通过textFieldClass样式,给Halo Label设置嵌入字体。


下面是main.mxml:



@namespace mx “library://ns.adobe.com/flex/halo”;
@namespace s “library://ns.adobe.com/flex/spark”;

@font-face {
src: url(“fonts/ArnoPro-Regular.otf”);
fontFamily: ArnoEmbedded;
embedAsCFF: true;
}

mx|Label, s|SimpleText {
fontFamily: ArnoEmbedded;
fontSize: 24;
}


The quick brown fox jumps over the lazy dog.





代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Leave a Reply

Your email address will not be published. Required fields are marked *