Actionscript 3 RichEditableText中嵌入的字体
我正在使用flex的RichEditableText,我想在RichEditableText中嵌入我自己的字体,所以我给了fontLookUp=embedded\u CFF,但它仍然没有使用我的嵌入字体,以及如何使用此RichEditableText的文本流。请查看以下代码,以便将嵌入式字体与RichEditableText一起使用Actionscript 3 RichEditableText中嵌入的字体,actionscript-3,apache-flex,flex4,Actionscript 3,Apache Flex,Flex4,我正在使用flex的RichEditableText,我想在RichEditableText中嵌入我自己的字体,所以我给了fontLookUp=embedded\u CFF,但它仍然没有使用我的嵌入字体,以及如何使用此RichEditableText的文本流。请查看以下代码,以便将嵌入式字体与RichEditableText一起使用 <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<s:layout>
<s:BasicLayout />
</s:layout>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
@font-face {
src: url("assets/ACaslonPro-Regular.otf");
fontFamily: "ACaslonProRegularEmbedded";
embedAsCFF: true;
}
s|RichEditableText {
fontFamily: ACaslonProRegularEmbedded;
fontLookup: embeddedCFF;
fontSize: 34;
}
</fx:Style>
<s:RichEditableText id="textView"
text="The quick brown fox jumped over the lazy dog. 01234567890"
width="400"
horizontalCenter="0"
verticalCenter="0" />
</s:Application>
@命名空间s“library://ns.adobe.com/flex/spark";
@名称空间mx“library://ns.adobe.com/flex/halo";
@字体{
src:url(“assets/ACaslonPro Regular.otf”);
fontFamily:“Acaslonproregulareded”;
embedAsCFF:正确;
}
s| RichEditableText{
fontFamily:Acaslonproregulareded;
fontLookup:嵌入式CFF;
大小:34 ;;
}
谢谢你,但我使用的是cs5中创建的字体swf,我必须将该swf嵌入到RichEditableText中。我也给了textLayoutFormat.fontLookup=fontLookup.EMBEDDED_CFF,但它没有使用我的嵌入式fontsCan你共享字体swf以便我可以测试它?你可以使用swfextract从swf中提取字体