<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Flash字体嵌入方法总结&#8212;(3)ActionScript提高篇</title> <atom:link href="http://kevincao.com/2009/06/flash-font-3/feed/" rel="self" type="application/rss+xml" /><link>http://kevincao.com/2009/06/flash-font-3/</link> <description>designer, developer, director</description> <lastBuildDate>Wed, 08 Feb 2012 10:42:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: allonkwok</title><link>http://kevincao.com/2009/06/flash-font-3/comment-page-1/#comment-66169</link> <dc:creator>allonkwok</dc:creator> <pubDate>Mon, 26 Sep 2011 01:13:04 +0000</pubDate> <guid
isPermaLink="false">http://kevincao.com/2009/06/flash-font-3/#comment-66169</guid> <description>加入embedAsCFF=&quot;false&quot;后可以了，可能不同flex SDK版本对嵌入字体的要求不一样</description> <content:encoded><![CDATA[<p>加入embedAsCFF=&#8221;false&#8221;后可以了，可能不同flex SDK版本对嵌入字体的要求不一样</p> ]]></content:encoded> </item> <item><title>By: allonkwok</title><link>http://kevincao.com/2009/06/flash-font-3/comment-page-1/#comment-66148</link> <dc:creator>allonkwok</dc:creator> <pubDate>Sat, 24 Sep 2011 08:15:54 +0000</pubDate> <guid
isPermaLink="false">http://kevincao.com/2009/06/flash-font-3/#comment-66148</guid> <description>文本无法显示啊，不知道是什么问题，可以帮忙看看吗，谢谢，信息如下：font.swf如下（所有汉字）：
[Embed(source=&quot;../font/AdobeHeitiStd.otf&quot;, fontName=&quot;AdobeHeitiStd&quot;, unicodeRange=&quot;U+8f93,U+5165,U+6587,U+5b57,U+4e00-U+9fa5&quot;, mimeType=&quot;application/x-font&quot;)]
var AdobeHeitiStd : Class;
Font.registerFont(AdobeHeitiStd);使用字体：
var fmt:TextFormat=new TextFormat(&quot;AdobeHeitiStd&quot;,68,0x336699);
var txt : TextField = new TextField();
txt.autoSize=TextFieldAutoSize.LEFT;
txt.embedFonts=true;
txt.text=&quot;中文字型&quot;;
txt.setTextFormat(fmt);
addChild(txt);调试代码：
var fontArray:Array = Font.enumerateFonts();
for(var i:int=0;i&lt;fontArray.length;i++){
trace(&quot;fontName:&quot;, fontArray[i].fontName);
}输出信息：fontName: AdobeHeitiStd</description> <content:encoded><![CDATA[<p>文本无法显示啊，不知道是什么问题，可以帮忙看看吗，谢谢，信息如下：</p><p>font.swf如下（所有汉字）：<br
/> [Embed(source="../font/AdobeHeitiStd.otf", fontName="AdobeHeitiStd", unicodeRange="U+8f93,U+5165,U+6587,U+5b57,U+4e00-U+9fa5", mimeType="application/x-font")]<br
/> var AdobeHeitiStd : Class;<br
/> Font.registerFont(AdobeHeitiStd);</p><p>使用字体：<br
/> var fmt:TextFormat=new TextFormat(&#8220;AdobeHeitiStd&#8221;,68,0&#215;336699);<br
/> var txt : TextField = new TextField();<br
/> txt.autoSize=TextFieldAutoSize.LEFT;<br
/> txt.embedFonts=true;<br
/> txt.text=&#8221;中文字型&#8221;;<br
/> txt.setTextFormat(fmt);<br
/> addChild(txt);</p><p>调试代码：<br
/> var fontArray:Array = Font.enumerateFonts();<br
/> for(var i:int=0;i&lt;fontArray.length;i++){<br
/> trace(&quot;fontName:&quot;, fontArray[i].fontName);<br
/> }</p><p>输出信息：fontName: AdobeHeitiStd</p> ]]></content:encoded> </item> <item><title>By: lovororo</title><link>http://kevincao.com/2009/06/flash-font-3/comment-page-1/#comment-11930</link> <dc:creator>lovororo</dc:creator> <pubDate>Wed, 24 Jun 2009 11:48:41 +0000</pubDate> <guid
isPermaLink="false">http://kevincao.com/2009/06/flash-font-3/#comment-11930</guid> <description>flash使用sdk编译也是可以的。不一定要用到flex </description> <content:encoded><![CDATA[<p>flash使用sdk编译也是可以的。不一定要用到flex</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 8/16 queries in 0.054 seconds using disk: basic

Served from: kevincao.com @ 2012-02-09 10:25:45 -->
