<?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: Styling a Flex Button control using embedded fonts</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ForrestB</title>
		<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/comment-page-1/#comment-9588</link>
		<dc:creator>ForrestB</dc:creator>
		<pubDate>Wed, 14 Sep 2011 01:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-9588</guid>
		<description>Thank you, you have saved me several more days trying to figure this out. Love the website by the way, I&#039;m new to Flex and it has helped me out many times.</description>
		<content:encoded><![CDATA[<p>Thank you, you have saved me several more days trying to figure this out. Love the website by the way, I&#8217;m new to Flex and it has helped me out many times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mati</title>
		<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/comment-page-1/#comment-6716</link>
		<dc:creator>Mati</dc:creator>
		<pubDate>Sun, 03 Jan 2010 09:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-6716</guid>
		<description>thanks for the article,i used flex button skinning using css and swf file , got idea from this tutorial
&lt;a href=&#039;http://www.askmeflash.com/tutorial/4/skinning-a-flex-button-tutorial-using-skin-in-flex&#039; rel=&quot;nofollow&quot;&gt;http://www.askmeflash.com/tutorial/4/skinning-a-flex-button-tutorial-using-skin-in-flex&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>thanks for the article,i used flex button skinning using css and swf file , got idea from this tutorial<br />
<a href='http://www.askmeflash.com/tutorial/4/skinning-a-flex-button-tutorial-using-skin-in-flex' rel="nofollow">http://www.askmeflash.com/tutorial/4/skinning-a-flex-button-tutorial-using-skin-in-flex</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron White</title>
		<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/comment-page-1/#comment-6585</link>
		<dc:creator>Ron White</dc:creator>
		<pubDate>Sat, 12 Dec 2009 07:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-6585</guid>
		<description>Thank you for this information. 
I have spent many hours trying to figure out why the labels embed the font and the buttons did not.  Who would have guessed that the buttons want the bold font. 

Mystery Solved.

Thanks
RW</description>
		<content:encoded><![CDATA[<p>Thank you for this information.<br />
I have spent many hours trying to figure out why the labels embed the font and the buttons did not.  Who would have guessed that the buttons want the bold font. </p>
<p>Mystery Solved.</p>
<p>Thanks<br />
RW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/comment-page-1/#comment-870</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 05 May 2008 15:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-870</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-12507&quot; rel=&quot;nofollow&quot;&gt;Eric Fields&lt;/a&gt;,

The problem is that you only embedded the normal font weight for the Arial font, and by default the Button control&#039;s label is bold. You have two options:
1) Set the button&#039;s label to use normal font weight instead of bold by setting the &lt;code&gt;fontWeight&lt;/code&gt; style:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:Style&gt;
    @font-face {
        src: url(&quot;fonts/Arial.ttf&quot;);
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        fontWeight: normal;
    }


    Application {
        color: white;
        fontSize: 12px;
        fontFamily: ArialEmbedded;
    }

    Button {
        fontWeight: normal;
    }
&lt;/mx:Style&gt;
&lt;/pre&gt;

2) Embed both the normal and bold font weights in your application:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:Style&gt;
    @font-face {
        src: local(&quot;Arial&quot;);
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        font-weight: normal;
    }

    @font-face {
        src: local(&quot;Arial&quot;);
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        font-weight: bold;
    }

    Application {
        color: white;
        fontSize: 12px;
        fontFamily: ArialEmbedded;
    }
&lt;/mx:Style&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-12507" rel="nofollow">Eric Fields</a>,</p>
<p>The problem is that you only embedded the normal font weight for the Arial font, and by default the Button control&#8217;s label is bold. You have two options:<br />
1) Set the button&#8217;s label to use normal font weight instead of bold by setting the <code>fontWeight</code> style:</p>
<pre class="code">
&lt;mx:Style&gt;
    @font-face {
        src: url("fonts/Arial.ttf");
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        fontWeight: normal;
    }

    Application {
        color: white;
        fontSize: 12px;
        fontFamily: ArialEmbedded;
    }

    Button {
        fontWeight: normal;
    }
&lt;/mx:Style&gt;
</pre>
<p>2) Embed both the normal and bold font weights in your application:</p>
<pre class="code">
&lt;mx:Style&gt;
    @font-face {
        src: local("Arial");
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        font-weight: normal;
    }

    @font-face {
        src: local("Arial");
        fontFamily: ArialEmbedded;
        fontStyle: normal;
        font-weight: bold;
    }

    Application {
        color: white;
        fontSize: 12px;
        fontFamily: ArialEmbedded;
    }
&lt;/mx:Style&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Fields</title>
		<link>http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/comment-page-1/#comment-869</link>
		<dc:creator>Eric Fields</dc:creator>
		<pubDate>Mon, 05 May 2008 14:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/28/styling-a-flex-button-control-using-embedded-fonts/#comment-869</guid>
		<description>Is there any trick to getting a common Button to use embedded fonts? I&#039;ve got the following:

@font-face {
	src: url(&quot;fonts/Arial.ttf&quot;);
	fontFamily: ArialEmbedded;
	fontStyle: normal;
	fontWeight: normal;
}
Application {
	color: white;
	fontSize: 12px;
	fontFamily: ArialEmbedded;
}

And the Button text defaults to some gross serif font. So i tried

Application, Button { ...

And still nothing. So I just tried

Button {
	embedFonts: true;
	fontFamily: ArialEmbedded;...

Still doesn&#039;t pick up the font. Still the serif.

Thank you.</description>
		<content:encoded><![CDATA[<p>Is there any trick to getting a common Button to use embedded fonts? I&#8217;ve got the following:</p>
<p>@font-face {<br />
	src: url(&#8220;fonts/Arial.ttf&#8221;);<br />
	fontFamily: ArialEmbedded;<br />
	fontStyle: normal;<br />
	fontWeight: normal;<br />
}<br />
Application {<br />
	color: white;<br />
	fontSize: 12px;<br />
	fontFamily: ArialEmbedded;<br />
}</p>
<p>And the Button text defaults to some gross serif font. So i tried</p>
<p>Application, Button { &#8230;</p>
<p>And still nothing. So I just tried</p>
<p>Button {<br />
	embedFonts: true;<br />
	fontFamily: ArialEmbedded;&#8230;</p>
<p>Still doesn&#8217;t pick up the font. Still the serif.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

