Flex 4中如何通过textFieldClass样式给Halo/MX List设置CFF/DefineFont4字体的例子

接下来的例子演示了Flex 4中如何通过textFieldClass样式设置mx.core.UIFTETextField类,给Halo/MX List设置CFF/DefineFont4字体。


下面是main.mxml:







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

@font-face {
src: url(“C:/Windows/Fonts/Arial.ttf”);
embedAsCFF: true;
fontFamily: df4ster;
}

mx|List {
color: red;
fontFamily: df4ster;
fontSize: 16;
textFieldClass: ClassReference(“mx.core.UIFTETextField”);
}
















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

Leave a Reply

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