<?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 a Flex application using Embed metadata</title>
	<atom:link href="http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Tue, 16 Mar 2010 09:52:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-5850</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 24 Sep 2009 01:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-5850</guid>
		<description>@lordB8r,

I can only imagine embedding 32 font faces would create an enormous SWF that would take a long time to load anyways. You may want to reconsider embedding that many fonts.

Out of curiosity, if the compiler ever finishes compiling, how large is that SWF?

Peter</description>
		<content:encoded><![CDATA[<p>@lordB8r,</p>
<p>I can only imagine embedding 32 font faces would create an enormous SWF that would take a long time to load anyways. You may want to reconsider embedding that many fonts.</p>
<p>Out of curiosity, if the compiler ever finishes compiling, how large is that SWF?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lordB8r</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-5847</link>
		<dc:creator>lordB8r</dc:creator>
		<pubDate>Wed, 23 Sep 2009 19:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-5847</guid>
		<description>Peter,

Thanks for the demo.  One problem I keep running into is the limit of how many embedded fonts I can put into a css before it brings my compiler to a standstill.  Essentially, I want to create a RichTextEditor (toolbar separated) that can rotate, but unless I embed the fonts (including normal, bold, italic, and bold &amp; italic), the font disappears the moment rotation passes 1 degree.  

One thing I&#039;ve tried doing is limiting the number of fonts available to 8 fonts (i.e. Arial, Courier, etc), but even that makes me need to have 32 @font-face statements in my css, otherwise the bold or italics (or combined) won&#039;t work.  If I remove the css, then I lose the text upon rotate.  Any thoughts/help?  Thanks,

lordB8r</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Thanks for the demo.  One problem I keep running into is the limit of how many embedded fonts I can put into a css before it brings my compiler to a standstill.  Essentially, I want to create a RichTextEditor (toolbar separated) that can rotate, but unless I embed the fonts (including normal, bold, italic, and bold &amp; italic), the font disappears the moment rotation passes 1 degree.  </p>
<p>One thing I&#8217;ve tried doing is limiting the number of fonts available to 8 fonts (i.e. Arial, Courier, etc), but even that makes me need to have 32 @font-face statements in my css, otherwise the bold or italics (or combined) won&#8217;t work.  If I remove the css, then I lose the text upon rotate.  Any thoughts/help?  Thanks,</p>
<p>lordB8r</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2482</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 19 Mar 2009 01:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2482</guid>
		<description>Sorry, here&#039;s an example using the &lt;code&gt;setStyle()&lt;/code&gt; method:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;Application xmlns=&quot;http://www.adobe.com/2006/mxml&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.events.ListEvent;

            private function comboBox_change(evt:ListEvent):void {
                var fontName:String = comboBox.selectedItem.toString();
                textArea.setStyle(&quot;fontFamily&quot;, fontName);
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;ComboBox id=&quot;comboBox&quot;
                dataProvider=&quot;[Verdana,Times New Roman,Trebuchet MS,Comic Sans MS]&quot;
                change=&quot;comboBox_change(event);&quot; /&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;TextArea id=&quot;textArea&quot;&gt;
        &lt;text&gt;The quick brown fox jumps over the lazy dog.&lt;/text&gt;
    &lt;/TextArea&gt;

&lt;/Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Sorry, here&#8217;s an example using the <code>setStyle()</code> method:</p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;Application xmlns="http://www.adobe.com/2006/mxml"
        backgroundColor="white"&gt;

    &lt;Script&gt;
        &lt;![CDATA[
            import mx.events.ListEvent;

            private function comboBox_change(evt:ListEvent):void {
                var fontName:String = comboBox.selectedItem.toString();
                textArea.setStyle("fontFamily", fontName);
            }
        ]]&gt;
    &lt;/Script&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;ComboBox id="comboBox"
                dataProvider="[Verdana,Times New Roman,Trebuchet MS,Comic Sans MS]"
                change="comboBox_change(event);" /&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;TextArea id="textArea"&gt;
        &lt;text&gt;The quick brown fox jumps over the lazy dog.&lt;/text&gt;
    &lt;/TextArea&gt;

&lt;/Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2481</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 19 Mar 2009 01:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2481</guid>
		<description>sheetal nilwant,

The following example shows how you can dynamically change the font family on a Flex TextArea control using data binding:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;Application xmlns=&quot;http://www.adobe.com/2006/mxml&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;ComboBox id=&quot;comboBox&quot;
                dataProvider=&quot;[Arial,Verdana,Times New Roman,Trebuchet MS,Comic Sans MS]&quot; /&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;TextArea id=&quot;textArea&quot; fontFamily=&quot;{comboBox.selectedItem}&quot;&gt;
        &lt;text&gt;The quick brown fox jumps over the lazy dog.&lt;/text&gt;
    &lt;/TextArea&gt;

&lt;/Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>sheetal nilwant,</p>
<p>The following example shows how you can dynamically change the font family on a Flex TextArea control using data binding:</p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;Application xmlns="http://www.adobe.com/2006/mxml"
        backgroundColor="white"&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;ComboBox id="comboBox"
                dataProvider="[Arial,Verdana,Times New Roman,Trebuchet MS,Comic Sans MS]" /&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;TextArea id="textArea" fontFamily="{comboBox.selectedItem}"&gt;
        &lt;text&gt;The quick brown fox jumps over the lazy dog.&lt;/text&gt;
    &lt;/TextArea&gt;

&lt;/Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sheetal nilwant</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2483</link>
		<dc:creator>sheetal nilwant</dc:creator>
		<pubDate>Wed, 18 Mar 2009 12:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2483</guid>
		<description>Hi,
I have tried it and it works compile time.WHen i want to do it runtime,for example i am changing a combo box and i want to change the font-family of a textarea text.Its not working.I am using setStyle() for it.Can u suggest something for the same.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have tried it and it works compile time.WHen i want to do it runtime,for example i am changing a combo box and i want to change the font-family of a textarea text.Its not working.I am using setStyle() for it.Can u suggest something for the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saul</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2484</link>
		<dc:creator>Saul</dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2484</guid>
		<description>Peter, thank you!</description>
		<content:encoded><![CDATA[<p>Peter, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2480</link>
		<dc:creator>Brent</dc:creator>
		<pubDate>Wed, 02 Apr 2008 14:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2480</guid>
		<description>PFM/PFB are not supported. You need to embed these fonts using the Flash IDE, set the linkages, and export the SWF file. You can then embed the SWF file into your class and access the fonts based off of their names. In my tests I&#039;ve found this produces a smaller file size for some reason.

http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_09.html#251936

OTF is supported, but I&#039;ve yet to use fonts of this type so I can&#039;t really speak to it.</description>
		<content:encoded><![CDATA[<p>PFM/PFB are not supported. You need to embed these fonts using the Flash IDE, set the linkages, and export the SWF file. You can then embed the SWF file into your class and access the fonts based off of their names. In my tests I&#8217;ve found this produces a smaller file size for some reason.</p>
<p><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_09.html#251936" rel="nofollow">http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_09.html#251936</a></p>
<p>OTF is supported, but I&#8217;ve yet to use fonts of this type so I can&#8217;t really speak to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DA</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2479</link>
		<dc:creator>DA</dc:creator>
		<pubDate>Fri, 08 Feb 2008 11:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2479</guid>
		<description>Luke, if you can use it in flex, you propably can embed it.</description>
		<content:encoded><![CDATA[<p>Luke, if you can use it in flex, you propably can embed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/comment-page-1/#comment-2478</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Thu, 07 Feb 2008 22:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/07/embedding-fonts-in-a-flex-application-using-embed-metadata/#comment-2478</guid>
		<description>Do you happen to know what font formats are supported? I assume that both Windows and Mac fonts can be used?</description>
		<content:encoded><![CDATA[<p>Do you happen to know what font formats are supported? I assume that both Windows and Mac fonts can be used?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
