<?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: Embedding fonts from a Flex application into a Flash SWF file</title>
	<atom:link href="http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Thu, 22 Jul 2010 14:13:10 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: lporiginalg</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-665</link>
		<dc:creator>lporiginalg</dc:creator>
		<pubDate>Fri, 16 Apr 2010 15:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-665</guid>
		<description>Hi Peter can you please help me, I have followed the steps exactly as you&#039;ve described but I keep getting  this error:

&quot;1067: Implicit coercion of a value of type FontsFontsFonts__EnglishFont to an unrelated type flash.text:Font.&quot;

when trying to use the call:

var myFont:Font = new FontsFontsFonts__EnglishFont();</description>
		<content:encoded><![CDATA[<p>Hi Peter can you please help me, I have followed the steps exactly as you&#8217;ve described but I keep getting  this error:</p>
<p>&#8220;1067: Implicit coercion of a value of type FontsFontsFonts__EnglishFont to an unrelated type flash.text:Font.&#8221;</p>
<p>when trying to use the call:</p>
<p>var myFont:Font = new FontsFontsFonts__EnglishFont();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-652</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 28 Feb 2010 22:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-652</guid>
		<description>@nusirat,

If you&#039;re using the Text Layout Components, you may need to embed the font with embedAsCFF=true.

Peter</description>
		<content:encoded><![CDATA[<p>@nusirat,</p>
<p>If you&#8217;re using the Text Layout Components, you may need to embed the font with embedAsCFF=true.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nusirat</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-651</link>
		<dc:creator>nusirat</dc:creator>
		<pubDate>Sun, 28 Feb 2010 18:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-651</guid>
		<description>Hello Peter
thanx alot for your example
but i face a problem when i try to use it with flash text layout component 
this is my code

_textFlow=parent[myTextLayoutComp].textFlow;
var myFont:Font = new FontsFontsFonts_ArialEmbeddedFont();
//_textFlow.fontLookup=FontLookup.EMBEDDED_CFF;
//_textFlow.renderingMode=RenderingMode.CFF;
trace(&quot;myFont.fontType  &quot;+myFont.fontType);
var textFlow:TextFlow = new TextFlow();
var charFormat:CharacterFormat = new CharacterFormat();
charFormat.color=textColorValue.color
charFormat.fontLookup=flash.text.engine.FontLookup.EMBEDDED_CFF;
charFormat.fontFamily=myFont.fontName
charFormat.kerning=flash.text.engine.Kerning.ON;
			
_textFlow.hostCharacterFormat=charFormat;
it dosent work with my textlayout</description>
		<content:encoded><![CDATA[<p>Hello Peter<br />
thanx alot for your example<br />
but i face a problem when i try to use it with flash text layout component<br />
this is my code</p>
<p>_textFlow=parent[myTextLayoutComp].textFlow;<br />
var myFont:Font = new FontsFontsFonts_ArialEmbeddedFont();<br />
//_textFlow.fontLookup=FontLookup.EMBEDDED_CFF;<br />
//_textFlow.renderingMode=RenderingMode.CFF;<br />
trace(&#8220;myFont.fontType  &#8220;+myFont.fontType);<br />
var textFlow:TextFlow = new TextFlow();<br />
var charFormat:CharacterFormat = new CharacterFormat();<br />
charFormat.color=textColorValue.color<br />
charFormat.fontLookup=flash.text.engine.FontLookup.EMBEDDED_CFF;<br />
charFormat.fontFamily=myFont.fontName<br />
charFormat.kerning=flash.text.engine.Kerning.ON;</p>
<p>_textFlow.hostCharacterFormat=charFormat;<br />
it dosent work with my textlayout</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-633</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 25 Jan 2010 05:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-633</guid>
		<description>Thanks! This was a big help.</description>
		<content:encoded><![CDATA[<p>Thanks! This was a big help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-600</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Wed, 21 Oct 2009 04:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-600</guid>
		<description>thx it works great</description>
		<content:encoded><![CDATA[<p>thx it works great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ian pretorius</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-571</link>
		<dc:creator>ian pretorius</dc:creator>
		<pubDate>Wed, 05 Aug 2009 17:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-571</guid>
		<description>Thakns for the example it works by me as well ;)</description>
		<content:encoded><![CDATA[<p>Thakns for the example it works by me as well ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pivo</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-564</link>
		<dc:creator>pivo</dc:creator>
		<pubDate>Fri, 24 Jul 2009 08:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-564</guid>
		<description>Sorry SK,seems to work for flash player 9 as well.

I see your package is located in the bin folder, why not just put it in the root? Works fine for me...</description>
		<content:encoded><![CDATA[<p>Sorry SK,seems to work for flash player 9 as well.</p>
<p>I see your package is located in the bin folder, why not just put it in the root? Works fine for me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pivo</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-563</link>
		<dc:creator>pivo</dc:creator>
		<pubDate>Fri, 24 Jul 2009 08:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-563</guid>
		<description>SK, you might want to consider to publish for Flash player 10... ;-)</description>
		<content:encoded><![CDATA[<p>SK, you might want to consider to publish for Flash player 10&#8230; ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-528</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 05 Jun 2009 13:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-528</guid>
		<description>Peter, 
Thank you.
Will this approach work with time line text fields? 
thanks,
Chris</description>
		<content:encoded><![CDATA[<p>Peter,<br />
Thank you.<br />
Will this approach work with time line text fields?<br />
thanks,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sk</title>
		<link>http://actionscriptexamples.com/2008/12/20/embedding-fonts-from-a-flex-application-into-a-flash-swf-file/comment-page-1/#comment-493</link>
		<dc:creator>sk</dc:creator>
		<pubDate>Tue, 21 Apr 2009 18:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=224#comment-493</guid>
		<description>Hello Peter

I can&#039;t make this work.  The following constructor:
new FontsFontsFonts_ArialEmbeddedFont();

keeps throwing an error:  &#039;Call to an undefined method&#039;

Here&#039;s my code:
-------------------

in Flex Builder 3:
package bin
{
	public class FArial
	{
		public function FArial()
		{
	       [Embed(systemFont=&quot;Arial&quot;, fontFamily=&quot;ArialEmbedded&quot;)]
    	    public const ArialEmbeddedFont:Class;
		}
	}
}


in Flash CS4:
// ActionScript 3.0 (Flash Authoring / Timeline)
var myFont:Font = new FArial_ArialEmbeddedFont();
[...]

- The library path is set to FArial.swc
- Actionscript 3
- Flash Player 9


Any insight or help would be much appreciated.

Thank you.

sk</description>
		<content:encoded><![CDATA[<p>Hello Peter</p>
<p>I can&#8217;t make this work.  The following constructor:<br />
new FontsFontsFonts_ArialEmbeddedFont();</p>
<p>keeps throwing an error:  &#8216;Call to an undefined method&#8217;</p>
<p>Here&#8217;s my code:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>in Flex Builder 3:<br />
package bin<br />
{<br />
	public class FArial<br />
	{<br />
		public function FArial()<br />
		{<br />
	       [Embed(systemFont="Arial", fontFamily="ArialEmbedded")]<br />
    	    public const ArialEmbeddedFont:Class;<br />
		}<br />
	}<br />
}</p>
<p>in Flash CS4:<br />
// ActionScript 3.0 (Flash Authoring / Timeline)<br />
var myFont:Font = new FArial_ArialEmbeddedFont();<br />
[...]</p>
<p>- The library path is set to FArial.swc<br />
- Actionscript 3<br />
- Flash Player 9</p>
<p>Any insight or help would be much appreciated.</p>
<p>Thank you.</p>
<p>sk</p>
]]></content:encoded>
	</item>
</channel>
</rss>
