【发布时间】:2012-02-15 01:57:00
【问题描述】:
通过将 fontfamily 直接设置为 mxml 中的 textarea 字体可以应用于特殊字符。但是使用 tlf 和设置 fontfamily 它并不适用。
style.css ::
@font-face
{
src: URL("/Assets/Fonts/GandhariUnicode-Bold.otf");
fontFamily: "GandhariUnicode-Bold";
embedAsCFF: true;
}
源代码的sn-p ::
textArea.textFlow.interactionManager.selectRange(beginIndex, endIndex);
var textLayoutFormat:TextLayoutFormat = getTextLayoutFormat();
textLayoutFormat.fontLookup = FontLookup.EMBEDDED_CFF;
textLayoutFormat.fontFamily ="GandhariUnicode-Bold";
textLayoutFormat.renderingMode = RenderingMode.CFF;
【问题讨论】:
标签: apache-flex textarea