Flex 4 更改默认字体
如何安装粗体和普通的多种字体,我正在尝试更改默认字体。
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace assets "assets.*";
@namespace comp "comp.*";
@font-face {
font-family: localVerdana;
src: url("assets/verdana.ttf");
src: url("assets/verdanab.ttf");
}
s|Label {
font-family: localVerdana;
}
s|TextInput {
font-family: localVerdana;
}
s|TextArea {
font-family: localVerdana;
}
</fx:Style>
How do I install multiple fonts for both bold and normal, I am trying to change the default font.
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace assets "assets.*";
@namespace comp "comp.*";
@font-face {
font-family: localVerdana;
src: url("assets/verdana.ttf");
src: url("assets/verdanab.ttf");
}
s|Label {
font-family: localVerdana;
}
s|TextInput {
font-family: localVerdana;
}
s|TextArea {
font-family: localVerdana;
}
</fx:Style>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要为您使用的每种样式、字体粗细有一个 @font-face 声明
You need to have one @font-face declaration for each style, weight of font you use