<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Embedding fonts Class in Flash CS3/AS3</title>
	<atom:link href="http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/</link>
	<description>A Blog covering Air, Flash, Flex, Illustrator and Photoshop</description>
	<lastBuildDate>Tue, 27 Oct 2009 14:26:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ss</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17977</link>
		<dc:creator>ss</dc:creator>
		<pubDate>Wed, 22 Apr 2009 15:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17977</guid>
		<description>Sven, you rock!</description>
		<content:encoded><![CDATA[<p>Sven, you rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17138</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Tue, 28 Oct 2008 05:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17138</guid>
		<description>Sven, I had the same problems trying to understand it. I&#039;ve finally got the answer:

Open Library, on the right hand side click &quot;New Font...&quot; and select the font you want. Here&#039;s the gotcha: the name is NOT the linkage.

To add the linkage you have to add your font to the library, and THEN right-click and select &quot;Linkage...&quot;. Call it &quot;Font1&quot; and the code above will work.

I&#039;ve spent hours trying to figure this out. Such a stupid UI misstep made by the CS3 team...</description>
		<content:encoded><![CDATA[<p>Sven, I had the same problems trying to understand it. I&#8217;ve finally got the answer:</p>
<p>Open Library, on the right hand side click &#8220;New Font&#8230;&#8221; and select the font you want. Here&#8217;s the gotcha: the name is NOT the linkage.</p>
<p>To add the linkage you have to add your font to the library, and THEN right-click and select &#8220;Linkage&#8230;&#8221;. Call it &#8220;Font1&#8243; and the code above will work.</p>
<p>I&#8217;ve spent hours trying to figure this out. Such a stupid UI misstep made by the CS3 team&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Hutto</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17127</link>
		<dc:creator>Nick Hutto</dc:creator>
		<pubDate>Sat, 25 Oct 2008 06:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17127</guid>
		<description>So What do i replace Font1 in the code with cause it throws this error 

ReferenceError: Error #1065: Variable Font1 is not defined.
	at global/flash.utils::getDefinitionByName()
	at Test()</description>
		<content:encoded><![CDATA[<p>So What do i replace Font1 in the code with cause it throws this error </p>
<p>ReferenceError: Error #1065: Variable Font1 is not defined.<br />
	at global/flash.utils::getDefinitionByName()<br />
	at Test()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime Méndez</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17079</link>
		<dc:creator>Jaime Méndez</dc:creator>
		<pubDate>Thu, 09 Oct 2008 02:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-17079</guid>
		<description>Follow this link, this sollution is more easy in all ways...

http://www.zedia.net/2007/using-embedded-fonts-in-flash-cs3-using-actionscript-3/</description>
		<content:encoded><![CDATA[<p>Follow this link, this sollution is more easy in all ways&#8230;</p>
<p><a href="http://www.zedia.net/2007/using-embedded-fonts-in-flash-cs3-using-actionscript-3/" rel="nofollow">http://www.zedia.net/2007/using-embedded-fonts-in-flash-cs3-using-actionscript-3/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Couch Actionscript 3.0</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-16179</link>
		<dc:creator>Jesse Couch Actionscript 3.0</dc:creator>
		<pubDate>Sat, 05 Jul 2008 03:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-16179</guid>
		<description>Sven &lt;&lt; this worked perfect.

Andre &lt;&lt; your code has a smiley face in it, how is that standard?




for anyone using flex 3 not flash cs3 do this to embed the font


	     [Embed(source=&#039;../../../assets/fonts/urfont.otf&#039;, 
	        fontName=&#039;urfont&#039;,
	        mimeType=&#039;application/x-font&#039;
	     )] 
	     private var fontclass:Class;
		
		
var embeddedFontClass:Class = fontclass;</description>
		<content:encoded><![CDATA[<p>Sven &lt;&lt; this worked perfect.</p>
<p>Andre &lt;&lt; your code has a smiley face in it, how is that standard?</p>
<p>for anyone using flex 3 not flash cs3 do this to embed the font</p>
<p>	     [Embed(source='../../../assets/fonts/urfont.otf',<br />
	        fontName='urfont',<br />
	        mimeType='application/x-font'<br />
	     )]<br />
	     private var fontclass:Class;</p>
<p>var embeddedFontClass:Class = fontclass;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-15726</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Fri, 20 Jun 2008 10:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-15726</guid>
		<description>Argh, crap. This is the 40.001 script I&#039;ve found on embedding font in AS3, and the shit still do not work.

Please, be extremely specific of the context when you throw something like this into cyberspace. Try to eliminate ALL guessing.</description>
		<content:encoded><![CDATA[<p>Argh, crap. This is the 40.001 script I&#8217;ve found on embedding font in AS3, and the shit still do not work.</p>
<p>Please, be extremely specific of the context when you throw something like this into cyberspace. Try to eliminate ALL guessing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-15608</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Fri, 06 Jun 2008 14:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-15608</guid>
		<description>Hey I just wanted to comment on the structure of your code. The industry has developed best practice methods for writing code. It will help your readers if you structure your code properly. See example below.

package {
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.Font;
	import flash.utils.getDefinitionByName;

	public class SimpleTextPaneTestDrive01 extends Sprite {
		var embeddedFont:Font = null;

		function SimpleTextPaneTestDrive01() {
			var embeddedFontClass:Class = getDefinitionByName(&quot;Font1&quot;) as Class;
			var embeddedFontsArray:Array = Font.enumerateFonts(false);
			var fmt:TextFormat = new TextFormat();
			var tf:TextField = new TextField();
			
			Font.registerFont(embeddedFontClass);
			embeddedFont = embeddedFontsArray[0];
			
			fmt.color =0xffffff;
			fmt.size = 16;
			fmt.font = embeddedFont.fontName;
			
			tf.text = &quot;hello world!&quot;;
			tf.setTextFormat(fmt);
		}
	}
}</description>
		<content:encoded><![CDATA[<p>Hey I just wanted to comment on the structure of your code. The industry has developed best practice methods for writing code. It will help your readers if you structure your code properly. See example below.</p>
<p>package {<br />
	import flash.display.Sprite;<br />
	import flash.text.TextField;<br />
	import flash.text.Font;<br />
	import flash.utils.getDefinitionByName;</p>
<p>	public class SimpleTextPaneTestDrive01 extends Sprite {<br />
		var embeddedFont:Font = null;</p>
<p>		function SimpleTextPaneTestDrive01() {<br />
			var embeddedFontClass:Class = getDefinitionByName(&#8220;Font1&#8243;) as Class;<br />
			var embeddedFontsArray:Array = Font.enumerateFonts(false);<br />
			var fmt:TextFormat = new TextFormat();<br />
			var tf:TextField = new TextField();</p>
<p>			Font.registerFont(embeddedFontClass);<br />
			embeddedFont = embeddedFontsArray[0];</p>
<p>			fmt.color =0xffffff;<br />
			fmt.size = 16;<br />
			fmt.font = embeddedFont.fontName;</p>
<p>			tf.text = &#8220;hello world!&#8221;;<br />
			tf.setTextFormat(fmt);<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ain Tohvri</title>
		<link>http://flashenabledblog.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-10211</link>
		<dc:creator>Ain Tohvri</dc:creator>
		<pubDate>Sat, 13 Oct 2007 06:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/2007/07/30/embedding-fonts-in-flash-cs3as3/#comment-10211</guid>
		<description>Just for the record: font embedding in Flash CS3 IDE does not support unicode ranges. To read further please read &lt;a href=&quot;http://tekkie.flashbit.net/flash/embedding-fonts-in-flash-cs3&quot; title=&quot;Embedding fonts in Flash CS3&quot; rel=&quot;nofollow&quot;&gt;an article at flash tekkie&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Just for the record: font embedding in Flash CS3 IDE does not support unicode ranges. To read further please read <a href="http://tekkie.flashbit.net/flash/embedding-fonts-in-flash-cs3" title="Embedding fonts in Flash CS3" rel="nofollow">an article at flash tekkie</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
