<?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 in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 20:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Annoyed</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6839</link>
		<dc:creator>Annoyed</dc:creator>
		<pubDate>Mon, 25 Jan 2010 06:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6839</guid>
		<description>Congratulations to the Adobe Development team for continuing to make Font Embedding the most annoying and frustrating aspect of Flash/Flex development.  There has to be an easier and more intuitive way.</description>
		<content:encoded><![CDATA[<p>Congratulations to the Adobe Development team for continuing to make Font Embedding the most annoying and frustrating aspect of Flash/Flex development.  There has to be an easier and more intuitive way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pc.de free fonts</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6754</link>
		<dc:creator>pc.de free fonts</dc:creator>
		<pubDate>Mon, 11 Jan 2010 16:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6754</guid>
		<description>I will try it in evening.Thanks for good example,well,nice share.</description>
		<content:encoded><![CDATA[<p>I will try it in evening.Thanks for good example,well,nice share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6719</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 03 Jan 2010 20:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6719</guid>
		<description>@Parmy,

Ah yes, if you&#039;re using the &lt;em&gt;ns.adobe.com/flex/halo&lt;/em&gt; namespace you&#039;re using an old Flex 4 beta SDK and your code will need to be changed when you upgrade to a newer nightly build of the Flex 4 SDK.
The new Spark TextArea is built upon TLF (Text Layout Framework) which is built upon FTE (Flash Text Engine), and includes better bi-directional text support, ligatures, subscript/superscript, strikethrough, and all around better looking text.

Yes, you can use the classic TextField, MX TextArea, or Spark TextArea without embedding a font. Also, all work with embedded fonts. All just depends on whether you want to rotate the text, or change the alpha, or if you want to ensure that the Flash/Flex application will work on a user&#039;s computer if they do not have the specific font installed on their machine.

Peter</description>
		<content:encoded><![CDATA[<p>@Parmy,</p>
<p>Ah yes, if you&#8217;re using the <em>ns.adobe.com/flex/halo</em> namespace you&#8217;re using an old Flex 4 beta SDK and your code will need to be changed when you upgrade to a newer nightly build of the Flex 4 SDK.<br />
The new Spark TextArea is built upon TLF (Text Layout Framework) which is built upon FTE (Flash Text Engine), and includes better bi-directional text support, ligatures, subscript/superscript, strikethrough, and all around better looking text.</p>
<p>Yes, you can use the classic TextField, MX TextArea, or Spark TextArea without embedding a font. Also, all work with embedded fonts. All just depends on whether you want to rotate the text, or change the alpha, or if you want to ensure that the Flash/Flex application will work on a user&#8217;s computer if they do not have the specific font installed on their machine.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parmy</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6718</link>
		<dc:creator>Parmy</dc:creator>
		<pubDate>Sun, 03 Jan 2010 19:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6718</guid>
		<description>Hi Peter

Thanks a lot for your response.

My apologies for my misleading post and my guesses at what the problem were; I&#039;ll be more careful in future :-)

I had to make one slight mod, to the code you listed to make it compile/work:

Line 4: 

xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;

I changed to:

xmlns:mx=&quot;library://ns.adobe.com/flex/halo&quot;

If you could help me with the following questions, I&#039;d appreciate the help:

1 - What if any would be the advantage of using the new spark components (for instance TextArea) over the older TextField? From what I can see, the new FTE and TLF provide lower level support; however, more code effort is required. From a TextField, I&#039;m able to set background color/alpha/border etc... With TextArea I either have to use setStyle or TextAreaSkin etc... I do understand that there are a number of improvements for sparks* TextArea over mx* TextArea.

2 - In the example I provided, I was able to use the new sparks* TextArea without embedding a font. I guess the obvious reason for embedding a font is it ensures the final swf app has access to the required font?

Thanks again for your help and support.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Peter</p>
<p>Thanks a lot for your response.</p>
<p>My apologies for my misleading post and my guesses at what the problem were; I&#8217;ll be more careful in future :-)</p>
<p>I had to make one slight mod, to the code you listed to make it compile/work:</p>
<p>Line 4: </p>
<p>xmlns:mx=&#8221;library://ns.adobe.com/flex/mx&#8221;</p>
<p>I changed to:</p>
<p>xmlns:mx=&#8221;library://ns.adobe.com/flex/halo&#8221;</p>
<p>If you could help me with the following questions, I&#8217;d appreciate the help:</p>
<p>1 &#8211; What if any would be the advantage of using the new spark components (for instance TextArea) over the older TextField? From what I can see, the new FTE and TLF provide lower level support; however, more code effort is required. From a TextField, I&#8217;m able to set background color/alpha/border etc&#8230; With TextArea I either have to use setStyle or TextAreaSkin etc&#8230; I do understand that there are a number of improvements for sparks* TextArea over mx* TextArea.</p>
<p>2 &#8211; In the example I provided, I was able to use the new sparks* TextArea without embedding a font. I guess the obvious reason for embedding a font is it ensures the final swf app has access to the required font?</p>
<p>Thanks again for your help and support.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6708</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 30 Dec 2009 19:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6708</guid>
		<description>@Parmy,

Sure, your revised example is better since it doesn&#039;t try and use &lt;code&gt;systemManager.stage.addChild()&lt;/code&gt;, but it doesn&#039;t really solve the problem of not being able to use an embedded font with a TextField. The one important thing to note is that there are two ways of font embedding now with Flex 4 and Flash Player 10. Previously you would embed a font and it would always use the flash.text.TextField class and use a DefineFont3 font behind the scenes. Now with the new Flash Text Engine/FTE (flash.text.engine.*) classes and Text Layout Framework/TLF (flashx.textLayout.*) classes, you can also embed fonts as DefineFont4 by setting the &lt;code&gt;embedAsCFF&lt;/code&gt; property to &lt;code&gt;true&lt;/code&gt; (which is now the default value in the latest beta Flex 4 SDK builds).
So the important thing to remember is that if you want to use embedded fonts, if you&#039;re using the &quot;older&quot; TextField based Flex components (mx.*) -- or are using the TextField class directly , you need to set the &lt;code&gt;embedAsCFF&lt;/code&gt; property to &lt;code&gt;false&lt;/code&gt; when embedding your fonts. If you are using the newer FTE or TLF based Flex components (spark.*), you need to set the &lt;code&gt;embedAsCFF&lt;/code&gt; property to &lt;code&gt;true&lt;/code&gt; when embedding your fonts.

Here&#039;s a slightly modified version of your first example which uses an embedded font with a classic flash.text.TextField object:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
               xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
               xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
               initialize=&quot;init();&quot;&gt;
    
    &lt;fx:Script&gt;
        &lt;![CDATA[
            public var boxHolder:MovieClip;
            public var textHolder:MovieClip;
            public var textTitle:MovieClip;
            
            [Embed(source=&quot;C:/Windows/fonts/arial.ttf&quot;,
                    fontFamily=&quot;ArialEmbedded&quot;,
                    mimeType=&quot;application/x-font&quot;,
                    embedAsCFF=&quot;false&quot;)]
            private const ArialEmbeddedFont:Class;
            
            public function init():void {
                boxHolder = new MovieClip();
                boxHolder.graphics.beginFill(0x990000);
                boxHolder.graphics.drawRoundRect(50, 30, 100, 60, 10);
                uic.addChild(boxHolder);
                
                var myFont:Font = new ArialEmbeddedFont();
                
                var myFormat:TextFormat = new TextFormat();
                myFormat.font = myFont.fontName;
                myFormat.size = 12;
                myFormat.color = 0x000000; // black
                myFormat.align = TextFormatAlign.LEFT;
                
                var myTextField:TextField = new TextField();
                myTextField.width = 80;
                myTextField.wordWrap = true;
                myTextField.defaultTextFormat = myFormat;
                myTextField.embedFonts = true;
                myTextField.multiline = true;
                myTextField.htmlText = &quot;Hello World&quot;;
                myTextField.selectable = false;
                myTextField.background = false;
                myTextField.border = false;
                myTextField.antiAliasType = AntiAliasType.ADVANCED;
                myTextField.autoSize = TextFieldAutoSize.LEFT;
                
                textTitle = new MovieClip();
                textTitle.x = 40;
                textTitle.y = 20;
                textTitle.addChild(myTextField);
                
                textHolder = new MovieClip();
                textHolder.addChild(textTitle);
                uic.addChild(textHolder);
            }
        ]]&gt;
    &lt;/fx:Script&gt;
    
    &lt;mx:UIComponent id=&quot;uic&quot; /&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Parmy,</p>
<p>Sure, your revised example is better since it doesn&#8217;t try and use <code>systemManager.stage.addChild()</code>, but it doesn&#8217;t really solve the problem of not being able to use an embedded font with a TextField. The one important thing to note is that there are two ways of font embedding now with Flex 4 and Flash Player 10. Previously you would embed a font and it would always use the flash.text.TextField class and use a DefineFont3 font behind the scenes. Now with the new Flash Text Engine/FTE (flash.text.engine.*) classes and Text Layout Framework/TLF (flashx.textLayout.*) classes, you can also embed fonts as DefineFont4 by setting the <code>embedAsCFF</code> property to <code>true</code> (which is now the default value in the latest beta Flex 4 SDK builds).<br />
So the important thing to remember is that if you want to use embedded fonts, if you&#8217;re using the &#8220;older&#8221; TextField based Flex components (mx.*) &#8212; or are using the TextField class directly , you need to set the <code>embedAsCFF</code> property to <code>false</code> when embedding your fonts. If you are using the newer FTE or TLF based Flex components (spark.*), you need to set the <code>embedAsCFF</code> property to <code>true</code> when embedding your fonts.</p>
<p>Here&#8217;s a slightly modified version of your first example which uses an embedded font with a classic flash.text.TextField object:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">               xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">               xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span></span>
<span style="color: #000000;">               initialize=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            public var boxHolder:MovieClip;</span>
<span style="color: #000000;">            public var textHolder:MovieClip;</span>
<span style="color: #000000;">            public var textTitle:MovieClip;</span>
&nbsp;
<span style="color: #000000;">            <span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;C:/Windows/fonts/arial.ttf&quot;</span>,</span>
<span style="color: #000000;">                    fontFamily=<span style="color: #ff0000;">&quot;ArialEmbedded&quot;</span>,</span>
<span style="color: #000000;">                    mimeType=<span style="color: #ff0000;">&quot;application/x-font&quot;</span>,</span>
<span style="color: #000000;">                    embedAsCFF=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></span>
<span style="color: #000000;">            private const ArialEmbeddedFont:Class;</span>
&nbsp;
<span style="color: #000000;">            public function init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                boxHolder = new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                boxHolder.graphics.beginFill<span style="color: #66cc66;">&#40;</span>0x990000<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                boxHolder.graphics.drawRoundRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">60</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                uic.addChild<span style="color: #66cc66;">&#40;</span>boxHolder<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                var myFont:Font = new ArialEmbeddedFont<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                var myFormat:TextFormat = new TextFormat<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                myFormat.font = myFont.fontName;</span>
<span style="color: #000000;">                myFormat.size = <span style="color: #cc66cc;">12</span>;</span>
<span style="color: #000000;">                myFormat.color = 0x000000; // black</span>
<span style="color: #000000;">                myFormat.align = TextFormatAlign.LEFT;</span>
&nbsp;
<span style="color: #000000;">                var myTextField:TextField = new TextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                myTextField.width = <span style="color: #cc66cc;">80</span>;</span>
<span style="color: #000000;">                myTextField.wordWrap = true;</span>
<span style="color: #000000;">                myTextField.defaultTextFormat = myFormat;</span>
<span style="color: #000000;">                myTextField.embedFonts = true;</span>
<span style="color: #000000;">                myTextField.multiline = true;</span>
<span style="color: #000000;">                myTextField.htmlText = <span style="color: #ff0000;">&quot;Hello World&quot;</span>;</span>
<span style="color: #000000;">                myTextField.selectable = false;</span>
<span style="color: #000000;">                myTextField.background = false;</span>
<span style="color: #000000;">                myTextField.border = false;</span>
<span style="color: #000000;">                myTextField.antiAliasType = AntiAliasType.ADVANCED;</span>
<span style="color: #000000;">                myTextField.autoSize = TextFieldAutoSize.LEFT;</span>
&nbsp;
<span style="color: #000000;">                textTitle = new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.x = <span style="color: #cc66cc;">40</span>;</span>
<span style="color: #000000;">                textTitle.y = <span style="color: #cc66cc;">20</span>;</span>
<span style="color: #000000;">                textTitle.addChild<span style="color: #66cc66;">&#40;</span>myTextField<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                textHolder = new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textHolder.addChild<span style="color: #66cc66;">&#40;</span>textTitle<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                uic.addChild<span style="color: #66cc66;">&#40;</span>textHolder<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:UIComponent</span> id=<span style="color: #ff0000;">&quot;uic&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parmy</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6705</link>
		<dc:creator>Parmy</dc:creator>
		<pubDate>Wed, 30 Dec 2009 18:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6705</guid>
		<description>Hi Peter

You may want to remove my previous post, as I think I&#039;ve found a point of difference between Flex and Flash which results in the Embedded Font not appearing.

In brief the issue appears to be the way I stack &quot;MovieClips&quot;. This works fine in Flash: stacking a MovieClip which contains a TextField onto top of a MovieClip which contains a graphic, the TextField appears. When I try this in Flex the TextField does not appear. I orginally thought this is because the TextField\TextFormat was not picking up the Embedded Font, however it appears as if it is not possible to stack MovieClips in Flex the same way you can in Flash.

I&#039;ve re-written the Flash app using &quot;Group&quot; in place of MovieClip and TextArea (with styles) in place of TextField and TextFormat. This works and means I do not need to embed Fonts. 

In case you feel it is worthwhile keeping my original post, I have re-written my example below.

To summarise the differences:
1 - No longer adding components to the &quot;stage&quot;, now using a UIComponent.
2 - MovieClip is replaced by Group
3 - TextField and TextFormat replaced by TextArea and setStyle
4 - No longer need to embed a Font for use in AS.

I&#039;ve kept the original code in the example below, which has been commented out to highlight the differences:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/halo&quot;
        minWidth=&quot;1024&quot; minHeight=&quot;768&quot;
        creationComplete=&quot;init()&quot;&gt;

    &lt;fx:Script&gt;
        &lt;![CDATA[
            // import flash.text.*;
            // import flash.text.Font;

            import spark.components.TextArea;
            import spark.components.Group;

            //public var boxHolder:MovieClip;
            //public var textHolder:MovieClip;

            public var boxHolder:Group;
            public var textHolder:Group;

            //public var textTitle:MovieClip;
            public var textTitle:TextArea;

            /*
                [Embed(source=&quot;font/arial.ttf&quot;,
                        fontFamily=&quot;ArialEmbedded&quot;,
                        mimeType=&quot;application/x-font&quot;,
                        embedAsCFF=&quot;true&quot;)]
                private const ArialEmbeddedFont:Class;
            */

            public function init():void {
                //boxHolder=new MovieClip();
                boxHolder=new Group();
                //systemManager.stage.addChild(boxHolder);
                uiStage.addChild(boxHolder);

                boxHolder.x = 50;
                boxHolder.y = 30;
                boxHolder.width = 100;
                boxHolder.height = 60;
                boxHolder.graphics.beginFill(0×990000);
                boxHolder.graphics.drawRoundRect(0, 0, 100, 60,10);

                //textHolder=new MovieClip();
                //systemManager.stage.addChild(textHolder);

                //textTitle=new MovieClip();
                textTitle=new TextArea();

                /*
                    //var myFont:Font = new Font();
                    var myFormat:TextFormat = new TextFormat();
                    myFormat.font= &quot;ArialEmbedded&quot;; //myFont.fontName;
                    myFormat.size=12;
                    myFormat.color=0×000000;
                    myFormat.align=&quot;left&quot;;

                    var myTextField:TextField = new TextField();
                    myTextField.width=80;
                    myTextField.wordWrap=true;
                    myTextField.defaultTextFormat=myFormat;
                    myTextField.embedFonts=true;
                    myTextField.multiline=true;
                    myTextField.htmlText=&quot;Hello World&quot;;
                    myTextField.selectable=false;
                    myTextField.background=false;
                    myTextField.border=false;
                    myTextField.antiAliasType = AntiAliasType.ADVANCED;
                    myTextField.autoSize=TextFieldAutoSize.LEFT;

                    textTitle.addChild(myTextField);

                    textHolder.addChild(textTitle);
                    textTitle.x=40;
                    textTitle.y=20;
                */

                textTitle.width = 80;
                textTitle.height = 20;
                textTitle.visible = true;
                textTitle.text = &quot;Hello World&quot;;
                textTitle.editable = false;
                textTitle.setStyle(&quot;contentBackgroundColor&quot;, 0xFFFFFF);
                textTitle.setStyle(&quot;contentBackgroundAlpha&quot;, 0);
                textTitle.setStyle(&quot;borderThickness&quot;, 0);
                textTitle.setStyle(&quot;borderAlpha&quot;, 0);
                textTitle.setStyle(&quot;fontSize&quot;, 12);
                textTitle.setStyle(&quot;fontFamily&quot;, &quot;Arial&quot;);
                textTitle.setStyle(&quot;fontStyle&quot;, &quot;normal&quot;);
                textTitle.setStyle(&quot;fontWeight&quot;, &quot;normal&quot;);
                textTitle.setStyle(&quot;textAlign&quot;, &quot;left&quot;);
                textTitle.setStyle(&quot;color&quot;, 0xFFFFFF);
                textTitle.buttonMode = false;
                textTitle.focusEnabled = false;
                textTitle.selectable = false;
                textTitle.x=0;
                textTitle.y=0;

                boxHolder.addElement(textTitle);

            }
        ]]&gt;
    &lt;/fx:Script&gt;

    &lt;mx:UIComponent width=&quot;100%&quot; height=&quot;100%&quot; id=&quot;uiStage&quot; x=&quot;0&quot; y=&quot;0&quot;/&gt;

&lt;/s:Application&gt;
&lt;/pre&gt;

As I will be continuing to convert a large number of projects from Flash to Flex, it might be worthwhile putting together a new blog for this. I would be happy to contribute and provide examples.

If anyone has any sugestions or tips for Flash to Flex conversions, it would be great to hear from you.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Peter</p>
<p>You may want to remove my previous post, as I think I&#8217;ve found a point of difference between Flex and Flash which results in the Embedded Font not appearing.</p>
<p>In brief the issue appears to be the way I stack &#8220;MovieClips&#8221;. This works fine in Flash: stacking a MovieClip which contains a TextField onto top of a MovieClip which contains a graphic, the TextField appears. When I try this in Flex the TextField does not appear. I orginally thought this is because the TextField\TextFormat was not picking up the Embedded Font, however it appears as if it is not possible to stack MovieClips in Flex the same way you can in Flash.</p>
<p>I&#8217;ve re-written the Flash app using &#8220;Group&#8221; in place of MovieClip and TextArea (with styles) in place of TextField and TextFormat. This works and means I do not need to embed Fonts. </p>
<p>In case you feel it is worthwhile keeping my original post, I have re-written my example below.</p>
<p>To summarise the differences:<br />
1 &#8211; No longer adding components to the &#8220;stage&#8221;, now using a UIComponent.<br />
2 &#8211; MovieClip is replaced by Group<br />
3 &#8211; TextField and TextFormat replaced by TextArea and setStyle<br />
4 &#8211; No longer need to embed a Font for use in AS.</p>
<p>I&#8217;ve kept the original code in the example below, which has been commented out to highlight the differences:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/halo&quot;</span></span>
<span style="color: #000000;">        minWidth=<span style="color: #ff0000;">&quot;1024&quot;</span> minHeight=<span style="color: #ff0000;">&quot;768&quot;</span></span>
<span style="color: #000000;">        creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            // import flash.text.*;</span>
<span style="color: #000000;">            // import flash.text.Font;</span>
&nbsp;
<span style="color: #000000;">            import spark.components.TextArea;</span>
<span style="color: #000000;">            import spark.components.Group;</span>
&nbsp;
<span style="color: #000000;">            //public var boxHolder:MovieClip;</span>
<span style="color: #000000;">            //public var textHolder:MovieClip;</span>
&nbsp;
<span style="color: #000000;">            public var boxHolder:Group;</span>
<span style="color: #000000;">            public var textHolder:Group;</span>
&nbsp;
<span style="color: #000000;">            //public var textTitle:MovieClip;</span>
<span style="color: #000000;">            public var textTitle:TextArea;</span>
&nbsp;
<span style="color: #000000;">            /*</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;font/arial.ttf&quot;</span>,</span>
<span style="color: #000000;">                        fontFamily=<span style="color: #ff0000;">&quot;ArialEmbedded&quot;</span>,</span>
<span style="color: #000000;">                        mimeType=<span style="color: #ff0000;">&quot;application/x-font&quot;</span>,</span>
<span style="color: #000000;">                        embedAsCFF=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></span>
<span style="color: #000000;">                private const ArialEmbeddedFont:Class;</span>
<span style="color: #000000;">            */</span>
&nbsp;
<span style="color: #000000;">            public function init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                //boxHolder=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                boxHolder=new Group<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                //systemManager.stage.addChild<span style="color: #66cc66;">&#40;</span>boxHolder<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                uiStage.addChild<span style="color: #66cc66;">&#40;</span>boxHolder<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                boxHolder.x = <span style="color: #cc66cc;">50</span>;</span>
<span style="color: #000000;">                boxHolder.y = <span style="color: #cc66cc;">30</span>;</span>
<span style="color: #000000;">                boxHolder.width = <span style="color: #cc66cc;">100</span>;</span>
<span style="color: #000000;">                boxHolder.height = <span style="color: #cc66cc;">60</span>;</span>
<span style="color: #000000;">                boxHolder.graphics.beginFill<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>×<span style="color: #cc66cc;">990000</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                boxHolder.graphics.drawRoundRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">60</span>,<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                //textHolder=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                //systemManager.stage.addChild<span style="color: #66cc66;">&#40;</span>textHolder<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                //textTitle=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle=new TextArea<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                /*</span>
<span style="color: #000000;">                    //var myFont:Font = new Font<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                    var myFormat:TextFormat = new TextFormat<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                    myFormat.font= <span style="color: #ff0000;">&quot;ArialEmbedded&quot;</span>; //myFont.fontName;</span>
<span style="color: #000000;">                    myFormat.size=<span style="color: #cc66cc;">12</span>;</span>
<span style="color: #000000;">                    myFormat.color=<span style="color: #cc66cc;">0</span>×000000;</span>
<span style="color: #000000;">                    myFormat.align=<span style="color: #ff0000;">&quot;left&quot;</span>;</span>
&nbsp;
<span style="color: #000000;">                    var myTextField:TextField = new TextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                    myTextField.width=<span style="color: #cc66cc;">80</span>;</span>
<span style="color: #000000;">                    myTextField.wordWrap=true;</span>
<span style="color: #000000;">                    myTextField.defaultTextFormat=myFormat;</span>
<span style="color: #000000;">                    myTextField.embedFonts=true;</span>
<span style="color: #000000;">                    myTextField.multiline=true;</span>
<span style="color: #000000;">                    myTextField.htmlText=<span style="color: #ff0000;">&quot;Hello World&quot;</span>;</span>
<span style="color: #000000;">                    myTextField.selectable=false;</span>
<span style="color: #000000;">                    myTextField.background=false;</span>
<span style="color: #000000;">                    myTextField.border=false;</span>
<span style="color: #000000;">                    myTextField.antiAliasType = AntiAliasType.ADVANCED;</span>
<span style="color: #000000;">                    myTextField.autoSize=TextFieldAutoSize.LEFT;</span>
&nbsp;
<span style="color: #000000;">                    textTitle.addChild<span style="color: #66cc66;">&#40;</span>myTextField<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                    textHolder.addChild<span style="color: #66cc66;">&#40;</span>textTitle<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                    textTitle.x=<span style="color: #cc66cc;">40</span>;</span>
<span style="color: #000000;">                    textTitle.y=<span style="color: #cc66cc;">20</span>;</span>
<span style="color: #000000;">                */</span>
&nbsp;
<span style="color: #000000;">                textTitle.width = <span style="color: #cc66cc;">80</span>;</span>
<span style="color: #000000;">                textTitle.height = <span style="color: #cc66cc;">20</span>;</span>
<span style="color: #000000;">                textTitle.visible = true;</span>
<span style="color: #000000;">                textTitle.text = <span style="color: #ff0000;">&quot;Hello World&quot;</span>;</span>
<span style="color: #000000;">                textTitle.editable = false;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;contentBackgroundColor&quot;</span>, 0xFFFFFF<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;contentBackgroundAlpha&quot;</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;borderThickness&quot;</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;borderAlpha&quot;</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fontSize&quot;</span>, <span style="color: #cc66cc;">12</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fontFamily&quot;</span>, <span style="color: #ff0000;">&quot;Arial&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fontStyle&quot;</span>, <span style="color: #ff0000;">&quot;normal&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fontWeight&quot;</span>, <span style="color: #ff0000;">&quot;normal&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;textAlign&quot;</span>, <span style="color: #ff0000;">&quot;left&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;color&quot;</span>, 0xFFFFFF<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.buttonMode = false;</span>
<span style="color: #000000;">                textTitle.focusEnabled = false;</span>
<span style="color: #000000;">                textTitle.selectable = false;</span>
<span style="color: #000000;">                textTitle.x=<span style="color: #cc66cc;">0</span>;</span>
<span style="color: #000000;">                textTitle.y=<span style="color: #cc66cc;">0</span>;</span>
&nbsp;
<span style="color: #000000;">                boxHolder.addElement<span style="color: #66cc66;">&#40;</span>textTitle<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:UIComponent</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> id=<span style="color: #ff0000;">&quot;uiStage&quot;</span> x=<span style="color: #ff0000;">&quot;0&quot;</span> y=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>As I will be continuing to convert a large number of projects from Flash to Flex, it might be worthwhile putting together a new blog for this. I would be happy to contribute and provide examples.</p>
<p>If anyone has any sugestions or tips for Flash to Flex conversions, it would be great to hear from you.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parmy</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6701</link>
		<dc:creator>Parmy</dc:creator>
		<pubDate>Tue, 29 Dec 2009 16:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6701</guid>
		<description>Hey Peter

Thanks for all your posts on Embedding Fonts. I&#039;m trying to convert a Flash project to a Flex project. I&#039;m having real problems trying to Embed Fonts into the Flex Project. I&#039;ve followed all the examples on your site and I&#039;ve had no success.

I have attached 2 code examples below.

In the first example I&#039;m simply drawing a red rectangle on the stage and trying to place some text on the rectangle. I&#039;ve used the &quot;Embed&quot; approach outlined in your example with no success.

The relevant lines of code are:

22 - [Embed(source=&quot;font/arial.ttf&quot;,  fontFamily=&quot;ArialEmbedded&quot;, ....
41 - var myFormat:TextFormat = new TextFormat();	
42 - myFormat.font= &quot;ArialEmbedded&quot;; 

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/halo&quot;
        minWidth=&quot;1024&quot; minHeight=&quot;768&quot;
        creationComplete=&quot;init()&quot;&gt;

    &lt;fx:Declarations&gt;
        &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;
    &lt;/fx:Declarations&gt;

    &lt;fx:Script&gt;
        &lt;![CDATA[
            import flash.text.*;
            import flash.text.Font;

            public var boxHolder:MovieClip;
            public var textHolder:MovieClip;

            public var textTitle:MovieClip;

            [Embed(source=&quot;font/arial.ttf&quot;,
                    fontFamily=&quot;ArialEmbedded&quot;,
                    mimeType=&quot;application/x-font&quot;,
                    embedAsCFF=&quot;true&quot;)]
            private const ArialEmbeddedFont:Class;

            public function init():void {
                boxHolder=new MovieClip();
                systemManager.stage.addChild(boxHolder);

                boxHolder.graphics.beginFill(0×990000);
                boxHolder.graphics.drawRoundRect(50, 30, 100, 60,10);

                textHolder=new MovieClip();
                systemManager.stage.addChild(textHolder);

                textTitle=new MovieClip();

                //var myFont:Font = new Font();
                var myFormat:TextFormat = new TextFormat();
                myFormat.font= &quot;ArialEmbedded&quot;; //myFont.fontName;
                myFormat.size=12;
                myFormat.color=0×000000;
                myFormat.align=&quot;left&quot;;

                var myTextField:TextField = new TextField();
                myTextField.width=80;
                myTextField.wordWrap=true;
                myTextField.defaultTextFormat=myFormat;
                myTextField.embedFonts=true;
                myTextField.multiline=true;
                myTextField.htmlText=&quot;Hello World&quot;;
                myTextField.selectable=false;
                myTextField.background=false;
                myTextField.border=false;
                myTextField.antiAliasType = AntiAliasType.ADVANCED;
                myTextField.autoSize=TextFieldAutoSize.LEFT;

                textTitle.addChild(myTextField);

                textHolder.addChild(textTitle);
                textTitle.x=40;
                textTitle.y=20;
            }

        ]]&gt;
    &lt;/fx:Script&gt;

&lt;/s:Application&gt;
&lt;/pre&gt;

I&#039;ve also tried the following:

File name: Arial_Black.as
&lt;pre lang=&quot;actionscript3&quot;&gt;
package
{
	import flash.text.Font; 
	
	[Embed(source = &#039;font/arial.ttf&#039;, fontName=&#039;ArialBlack&#039; )]
	public class Arial_Black extends Font {
		
	}
}
&lt;/pre&gt;

I then update my main,mxml with the following:
&lt;pre lang=&quot;actionscript3&quot;&gt;
import Arial_Black;
&lt;/pre&gt;

40 - var myFont:Font = new Arial_Black();
41 - var myFormat:TextFormat = new TextFormat();	
42 - myFormat.font= myFont.fontName;

It makes no difference if I register the font using &lt;code&gt;Font.registerFont(Arial_Black);&lt;/code&gt;

The one thing I haven&#039;t tried is creating a simple SWF from a Flash project which contains the Font I am after and then trying to load the SWF in my Flex project and Embedding the Font that way. This seems like over kill and I can&#039;t understand why the above approach won&#039;t work.

I&#039;ve also tried using Embed with systemFont, but I get compilation errors.

Apologies if this is not the correct blog for posting this question; I posted it hear as I am trying to Embed a Font in Flex 4.

Any pointers or help would be appreciated.

Cheers.</description>
		<content:encoded><![CDATA[<p>Hey Peter</p>
<p>Thanks for all your posts on Embedding Fonts. I&#8217;m trying to convert a Flash project to a Flex project. I&#8217;m having real problems trying to Embed Fonts into the Flex Project. I&#8217;ve followed all the examples on your site and I&#8217;ve had no success.</p>
<p>I have attached 2 code examples below.</p>
<p>In the first example I&#8217;m simply drawing a red rectangle on the stage and trying to place some text on the rectangle. I&#8217;ve used the &#8220;Embed&#8221; approach outlined in your example with no success.</p>
<p>The relevant lines of code are:</p>
<p>22 &#8211; [Embed(source=&#8221;font/arial.ttf&#8221;,  fontFamily=&#8221;ArialEmbedded&#8221;, &#8230;.<br />
41 &#8211; var myFormat:TextFormat = new TextFormat();<br />
42 &#8211; myFormat.font= &#8220;ArialEmbedded&#8221;;</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/halo&quot;</span></span>
<span style="color: #000000;">        minWidth=<span style="color: #ff0000;">&quot;1024&quot;</span> minHeight=<span style="color: #ff0000;">&quot;768&quot;</span></span>
<span style="color: #000000;">        creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            import flash.text.*;</span>
<span style="color: #000000;">            import flash.text.Font;</span>
&nbsp;
<span style="color: #000000;">            public var boxHolder:MovieClip;</span>
<span style="color: #000000;">            public var textHolder:MovieClip;</span>
&nbsp;
<span style="color: #000000;">            public var textTitle:MovieClip;</span>
&nbsp;
<span style="color: #000000;">            <span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;font/arial.ttf&quot;</span>,</span>
<span style="color: #000000;">                    fontFamily=<span style="color: #ff0000;">&quot;ArialEmbedded&quot;</span>,</span>
<span style="color: #000000;">                    mimeType=<span style="color: #ff0000;">&quot;application/x-font&quot;</span>,</span>
<span style="color: #000000;">                    embedAsCFF=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></span>
<span style="color: #000000;">            private const ArialEmbeddedFont:Class;</span>
&nbsp;
<span style="color: #000000;">            public function init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                boxHolder=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                systemManager.stage.addChild<span style="color: #66cc66;">&#40;</span>boxHolder<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                boxHolder.graphics.beginFill<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>×<span style="color: #cc66cc;">990000</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                boxHolder.graphics.drawRoundRect<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">60</span>,<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                textHolder=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                systemManager.stage.addChild<span style="color: #66cc66;">&#40;</span>textHolder<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                textTitle=new MovieClip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                //var myFont:Font = new Font<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                var myFormat:TextFormat = new TextFormat<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                myFormat.font= <span style="color: #ff0000;">&quot;ArialEmbedded&quot;</span>; //myFont.fontName;</span>
<span style="color: #000000;">                myFormat.size=<span style="color: #cc66cc;">12</span>;</span>
<span style="color: #000000;">                myFormat.color=<span style="color: #cc66cc;">0</span>×000000;</span>
<span style="color: #000000;">                myFormat.align=<span style="color: #ff0000;">&quot;left&quot;</span>;</span>
&nbsp;
<span style="color: #000000;">                var myTextField:TextField = new TextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                myTextField.width=<span style="color: #cc66cc;">80</span>;</span>
<span style="color: #000000;">                myTextField.wordWrap=true;</span>
<span style="color: #000000;">                myTextField.defaultTextFormat=myFormat;</span>
<span style="color: #000000;">                myTextField.embedFonts=true;</span>
<span style="color: #000000;">                myTextField.multiline=true;</span>
<span style="color: #000000;">                myTextField.htmlText=<span style="color: #ff0000;">&quot;Hello World&quot;</span>;</span>
<span style="color: #000000;">                myTextField.selectable=false;</span>
<span style="color: #000000;">                myTextField.background=false;</span>
<span style="color: #000000;">                myTextField.border=false;</span>
<span style="color: #000000;">                myTextField.antiAliasType = AntiAliasType.ADVANCED;</span>
<span style="color: #000000;">                myTextField.autoSize=TextFieldAutoSize.LEFT;</span>
&nbsp;
<span style="color: #000000;">                textTitle.addChild<span style="color: #66cc66;">&#40;</span>myTextField<span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                textHolder.addChild<span style="color: #66cc66;">&#40;</span>textTitle<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                textTitle.x=<span style="color: #cc66cc;">40</span>;</span>
<span style="color: #000000;">                textTitle.y=<span style="color: #cc66cc;">20</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>I&#8217;ve also tried the following:</p>
<p>File name: Arial_Black.as</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">Font</span>; 
&nbsp;
	<span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #004993;">source</span> = <span style="color: #990000;">'font/arial.ttf'</span>, <span style="color: #004993;">fontName</span>=<span style="color: #990000;">'ArialBlack'</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Arial_Black extends <span style="color: #004993;">Font</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>I then update my main,mxml with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> Arial_Black;</pre></div></div>

<p>40 &#8211; var myFont:Font = new Arial_Black();<br />
41 &#8211; var myFormat:TextFormat = new TextFormat();<br />
42 &#8211; myFormat.font= myFont.fontName;</p>
<p>It makes no difference if I register the font using <code>Font.registerFont(Arial_Black);</code></p>
<p>The one thing I haven&#8217;t tried is creating a simple SWF from a Flash project which contains the Font I am after and then trying to load the SWF in my Flex project and Embedding the Font that way. This seems like over kill and I can&#8217;t understand why the above approach won&#8217;t work.</p>
<p>I&#8217;ve also tried using Embed with systemFont, but I get compilation errors.</p>
<p>Apologies if this is not the correct blog for posting this question; I posted it hear as I am trying to Embed a Font in Flex 4.</p>
<p>Any pointers or help would be appreciated.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Marie</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6698</link>
		<dc:creator>Jean-Marie</dc:creator>
		<pubDate>Mon, 28 Dec 2009 19:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6698</guid>
		<description>My God - I found... I had the -managers flash.fonts.AFEFontManager option set!!! Sorry for the annoyance.. And thank you for your help.
Best regards,</description>
		<content:encoded><![CDATA[<p>My God &#8211; I found&#8230; I had the -managers flash.fonts.AFEFontManager option set!!! Sorry for the annoyance.. And thank you for your help.<br />
Best regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Marie</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6697</link>
		<dc:creator>Jean-Marie</dc:creator>
		<pubDate>Mon, 28 Dec 2009 19:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6697</guid>
		<description>Sorry, my previous code excerpt was truncated (I did not read the red warning -- too large font :-). Here it is again:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:WindowedApplication xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        creationComplete=&quot;listFonts()&quot;&gt;

    &lt;fx:Style&gt;
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;

        @font-face {
            src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
            font-family: &quot;JigsawMediumCFF&quot;;
            embedAsCFF: true;
        }

        @font-face {
            src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
            font-family: &quot;JigsawMedium&quot;;
            embedAsCFF: false;
        }

        @font-face {
            src: url(&quot;assets/fonts/arial.ttf&quot;);
            font-family: &quot;ArialCFF&quot;;
            embedAsCFF: true;
        }
    &lt;/fx:Style&gt;

    &lt;fx:Script&gt;&lt;![CDATA[
        private function listFonts():void {
            var fontArray:Array = Font.enumerateFonts(true);
            ta1.text += &quot;Fonts: \n&quot;;
            for(var i:int = 0; i &lt; fontArray.length; i++) {
                var thisFont:Font = fontArray[i];
                ta1.text += &quot;FONT &quot; + i + &quot;:: name: &quot; + thisFont.fontName + &quot;; typeface: &quot; +
                thisFont.fontStyle + &quot;; type: &quot; + thisFont.fontType;
                if (thisFont.fontType == &quot;embeddedCFF&quot;&#124;&#124;thisFont.fontType == &quot;embedded&quot;) {
                    ta1.text += &quot;*&quot;;
                }
                ta1.text += &quot;\n&quot;;
            }
        }
    ]]&gt;&lt;/fx:Script&gt;

    &lt;s:VGroup&gt;
        &lt;s:RichText text=&quot;Plain Label&quot; styleName=&quot;myPlainStyle&quot;/&gt;
        &lt;s:RichText text=&quot;Bold Label&quot; styleName=&quot;myBoldStyle&quot;/&gt;
        &lt;s:RichText text=&quot;Italic Label&quot; styleName=&quot;myItalicStyle&quot;/&gt;

        &lt;s:TextArea id=&quot;ta1&quot; height=&quot;200&quot; width=&quot;400&quot;/&gt;
        &lt;s:RichText text=&quot;* Embedded&quot; styleName=&quot;myItalicStyle&quot;/&gt;

        &lt;s:Label id=&quot;lbl&quot;
                fontFamily=&quot;ArialCFF&quot;
                fontLookup=&quot;embeddedCFF&quot;
                fontSize=&quot;24&quot;
                fontWeight=&quot;normal&quot;
                text=&quot;The quick brown fox jumps over the lazy dog.{&#039;\n&#039;}THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.&quot;
                horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot; /&gt;
    &lt;/s:VGroup&gt;

&lt;/s:WindowedApplication&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, my previous code excerpt was truncated (I did not read the red warning &#8212; too large font :-). Here it is again:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:WindowedApplication</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        creationComplete=<span style="color: #ff0000;">&quot;listFonts()&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
&nbsp;
        @font-face {
            src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
            font-family: &quot;JigsawMediumCFF&quot;;
            embedAsCFF: true;
        }
&nbsp;
        @font-face {
            src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
            font-family: &quot;JigsawMedium&quot;;
            embedAsCFF: false;
        }
&nbsp;
        @font-face {
            src: url(&quot;assets/fonts/arial.ttf&quot;);
            font-family: &quot;ArialCFF&quot;;
            embedAsCFF: true;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span>&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">        private function listFonts<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">            var fontArray:Array = Font.enumerateFonts<span style="color: #66cc66;">&#40;</span>true<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            ta1.text += <span style="color: #ff0000;">&quot;Fonts: \n&quot;</span>;</span>
<span style="color: #000000;">            for<span style="color: #66cc66;">&#40;</span>var i:int = <span style="color: #cc66cc;">0</span>; i &lt; fontArray.length; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var thisFont:Font = fontArray<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</span>
<span style="color: #000000;">                ta1.text += <span style="color: #ff0000;">&quot;FONT &quot;</span> + i + <span style="color: #ff0000;">&quot;:: name: &quot;</span> + thisFont.fontName + <span style="color: #ff0000;">&quot;; typeface: &quot;</span> +</span>
<span style="color: #000000;">                thisFont.fontStyle + <span style="color: #ff0000;">&quot;; type: &quot;</span> + thisFont.fontType;</span>
<span style="color: #000000;">                if <span style="color: #66cc66;">&#40;</span>thisFont.fontType == <span style="color: #ff0000;">&quot;embeddedCFF&quot;</span>||thisFont.fontType == <span style="color: #ff0000;">&quot;embedded&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                    ta1.text += <span style="color: #ff0000;">&quot;*&quot;</span>;</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">                ta1.text += <span style="color: #ff0000;">&quot;\n&quot;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">    <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VGroup</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:RichText</span> text=<span style="color: #ff0000;">&quot;Plain Label&quot;</span> styleName=<span style="color: #ff0000;">&quot;myPlainStyle&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:RichText</span> text=<span style="color: #ff0000;">&quot;Bold Label&quot;</span> styleName=<span style="color: #ff0000;">&quot;myBoldStyle&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:RichText</span> text=<span style="color: #ff0000;">&quot;Italic Label&quot;</span> styleName=<span style="color: #ff0000;">&quot;myItalicStyle&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:TextArea</span> id=<span style="color: #ff0000;">&quot;ta1&quot;</span> height=<span style="color: #ff0000;">&quot;200&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:RichText</span> text=<span style="color: #ff0000;">&quot;* Embedded&quot;</span> styleName=<span style="color: #ff0000;">&quot;myItalicStyle&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;lbl&quot;</span></span>
<span style="color: #000000;">                fontFamily=<span style="color: #ff0000;">&quot;ArialCFF&quot;</span></span>
<span style="color: #000000;">                fontLookup=<span style="color: #ff0000;">&quot;embeddedCFF&quot;</span></span>
<span style="color: #000000;">                fontSize=<span style="color: #ff0000;">&quot;24&quot;</span></span>
<span style="color: #000000;">                fontWeight=<span style="color: #ff0000;">&quot;normal&quot;</span></span>
<span style="color: #000000;">                text=<span style="color: #ff0000;">&quot;The quick brown fox jumps over the lazy dog.{'\n'}THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.&quot;</span></span>
<span style="color: #000000;">                horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:VGroup</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:WindowedApplication</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Marie</title>
		<link>http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/comment-page-1/#comment-6696</link>
		<dc:creator>Jean-Marie</dc:creator>
		<pubDate>Mon, 28 Dec 2009 19:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/#comment-6696</guid>
		<description>CFF embedding does not seem to be working in my case. I did the following test:
&lt;code&gt;


	
	
		@namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
		
		@font-face {
			src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
			font-family: &quot;JigsawMediumCFF&quot;;
			embedAsCFF: true;
		}
		
		@font-face {
			src: url(&quot;assets/fonts/JiMd____.ttf&quot;);
			font-family: &quot;JigsawMedium&quot;;
			embedAsCFF: false;
		}
		
		@font-face {
			src: url(&quot;assets/fonts/arial.ttf&quot;);
			font-family: &quot;ArialCFF&quot;;
			embedAsCFF: true;
		}
	
	
	&lt;![CDATA[
		private function listFonts():void {
			var fontArray:Array = Font.enumerateFonts(true);
			ta1.text += &quot;Fonts: \n&quot;;
			for(var i:int = 0; i 


	 
		 
		 
		 
		
		
		 

		
	

	

&lt;/code&gt;
I get the following result:
&lt;code&gt;
Fonts: 
FONT 0:: name: ArialCFF; typeface: regular; type: embedded*
FONT 1:: name: JigsawMedium; typeface: regular; type: embedded*
FONT 2:: name: JigsawMediumCFF; typeface: regular; type: embedded*
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>CFF embedding does not seem to be working in my case. I did the following test:<br />
<code></p>
<p>		@namespace s "library://ns.adobe.com/flex/spark";</p>
<p>		@font-face {<br />
			src: url("assets/fonts/JiMd____.ttf");<br />
			font-family: "JigsawMediumCFF";<br />
			embedAsCFF: true;<br />
		}</p>
<p>		@font-face {<br />
			src: url("assets/fonts/JiMd____.ttf");<br />
			font-family: "JigsawMedium";<br />
			embedAsCFF: false;<br />
		}</p>
<p>		@font-face {<br />
			src: url("assets/fonts/arial.ttf");<br />
			font-family: "ArialCFF";<br />
			embedAsCFF: true;<br />
		}</p>
<p>	&lt;![CDATA[<br />
		private function listFonts():void {<br />
			var fontArray:Array = Font.enumerateFonts(true);<br />
			ta1.text += &quot;Fonts: \n&quot;;<br />
			for(var i:int = 0; i </p>
<p></code><br />
I get the following result:<br />
<code><br />
Fonts:<br />
FONT 0:: name: ArialCFF; typeface: regular; type: embedded*<br />
FONT 1:: name: JigsawMedium; typeface: regular; type: embedded*<br />
FONT 2:: name: JigsawMediumCFF; typeface: regular; type: embedded*<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
