【发布时间】:2012-02-23 23:56:20
【问题描述】:
我正在尝试在 spark RichText 组件中嵌入多种字体,但不知道该怎么做。我希望能够使用 HTML 中的标签显示粗体字体。使用我使用的字体,常规和粗体字符集位于不同的 .ttf 文件中。
我可以在 CSS 中为一个组件设置多个字体系列吗?
到目前为止,这是我的样式表...
@font-face {
src: url("/styles/fonts/FontRg.ttf");
fontFamily: FontRg_CFF;
fontStyle: normal;
fontWeight: normal;
embedAsCFF: true;
}
@font-face {
src: url("/styles/fonts/FontRgBd.ttf");
fontFamily: FontRgBd_CFF;
fontStyle: normal;
fontWeight: normal;
embedAsCFF: true;
}
s|RichText{
font-family: FontRg_CFF;
font-size: 16;
}
感谢您的帮助!
【问题讨论】:
标签: css apache-flex fonts embed