<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; fontWeight</title>
	<atom:link href="http://blog.flexexamples.com/tag/fontweight/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting the font weight on the MX Legend control in Flex 4</title>
		<link>http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/</link>
		<comments>http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 07:08:41 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta2]]></category>
		<category><![CDATA[Charting]]></category>
		<category><![CDATA[Legend]]></category>
		<category><![CDATA[LegendItem]]></category>
		<category><![CDATA[PieChart]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2511</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/">&#8220;Setting the font weight on a charting Legend control in Flex&#8221;</a>, we saw how you could set the font weight of a Flex Charting Legend control by setting the fontWeight style on the LegendItem CSS selector.</p> <p>The following example shows how you can set the font weight of an MX [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/">&#8220;Setting the font weight on a charting Legend control in Flex&#8221;</a>, we saw how you could set the font weight of a Flex Charting Legend control by setting the <code>fontWeight</code> style on the LegendItem CSS selector.</p>
<p>The following example shows how you can set the font weight of an MX Legend control by setting the <code>fontWeight</code> style on the LegendItem CSS selector in Flex 4.</p>
<p><span id="more-2511"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;MX_LegendItem_fontWeight_test&quot;</span></span>
<span style="color: #000000;">        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 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;;
        @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
&nbsp;
        mx|LegendItem {
            fontWeight: normal;
        }
    <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:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:XMLListCollection</span> id=<span style="color: #ff0000;">&quot;dp&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:source</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 1&quot;</span> data=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 2&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 3&quot;</span> data=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 4&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 5&quot;</span> data=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 6&quot;</span> data=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:source</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:XMLListCollection</span><span style="color: #7400FF;">&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;s:Panel</span> left=<span style="color: #ff0000;">&quot;20&quot;</span> right=<span style="color: #ff0000;">&quot;20&quot;</span> top=<span style="color: #ff0000;">&quot;20&quot;</span> bottom=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Legend</span> dataProvider=<span style="color: #ff0000;">&quot;{pieChart}&quot;</span></span>
<span style="color: #000000;">                    direction=<span style="color: #ff0000;">&quot;horizontal&quot;</span></span>
<span style="color: #000000;">                    horizontalGap=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">                    width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieChart</span> id=<span style="color: #ff0000;">&quot;pieChart&quot;</span></span>
<span style="color: #000000;">                dataProvider=<span style="color: #ff0000;">&quot;{dp}&quot;</span></span>
<span style="color: #000000;">                showDataTips=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:series</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieSeries</span> id=<span style="color: #ff0000;">&quot;pieSeries&quot;</span></span>
<span style="color: #000000;">                        field=<span style="color: #ff0000;">&quot;@data&quot;</span></span>
<span style="color: #000000;">                        nameField=<span style="color: #ff0000;">&quot;@label&quot;</span></span>
<span style="color: #000000;">                        filters=<span style="color: #ff0000;">&quot;[]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:series</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:PieChart</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Panel</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>

<div span="googleAdsLeaderboard">
<script type="text/javascript"><!--
google_ad_client = "pub-3325829455487492";
/* 728x90, created 7/15/09 */
google_ad_slot = "6403511741";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
<p class="information"><a href="http://dl.dropbox.com/u/4509565/FlexExamples_com/MX_LegendItem_fontWeight_test/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://dl.dropbox.com/u/4509565/FlexExamples_com/MX_LegendItem_fontWeight_test/main.html" width="100%" height="300"></iframe></p>
<p>Or, if you wanted to use an embedded font, you could use the following code:</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;MX_LegendItem_fontWeight_test&quot;</span></span>
<span style="color: #000000;">        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 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;;
        @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
&nbsp;
        @font-face {
            src: url(&quot;C:/Windows/Fonts/comic.ttf&quot;);
            fontFamily: myEmbeddedFont;
            fontWeight: normal;
            embedAsCFF: false;
        }
&nbsp;
        mx|LegendItem {
            color: white;
            fontFamily: myEmbeddedFont;
            fontSize: 16;
            fontWeight: normal;
        }
    <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:Declarations</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:XMLListCollection</span> id=<span style="color: #ff0000;">&quot;dp&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:source</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 1&quot;</span> data=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 2&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 3&quot;</span> data=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 4&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 5&quot;</span> data=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 6&quot;</span> data=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:source</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:XMLListCollection</span><span style="color: #7400FF;">&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;s:Panel</span> left=<span style="color: #ff0000;">&quot;20&quot;</span> right=<span style="color: #ff0000;">&quot;20&quot;</span> top=<span style="color: #ff0000;">&quot;20&quot;</span> bottom=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Legend</span> dataProvider=<span style="color: #ff0000;">&quot;{pieChart}&quot;</span></span>
<span style="color: #000000;">                    direction=<span style="color: #ff0000;">&quot;horizontal&quot;</span></span>
<span style="color: #000000;">                    horizontalGap=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">                    width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieChart</span> id=<span style="color: #ff0000;">&quot;pieChart&quot;</span></span>
<span style="color: #000000;">                dataProvider=<span style="color: #ff0000;">&quot;{dp}&quot;</span></span>
<span style="color: #000000;">                showDataTips=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:series</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieSeries</span> id=<span style="color: #ff0000;">&quot;pieSeries&quot;</span></span>
<span style="color: #000000;">                        field=<span style="color: #ff0000;">&quot;@data&quot;</span></span>
<span style="color: #000000;">                        nameField=<span style="color: #ff0000;">&quot;@label&quot;</span></span>
<span style="color: #000000;">                        filters=<span style="color: #ff0000;">&quot;[]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:series</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:PieChart</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Panel</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 class="alert">This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the font weight on the MX Legend control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/',contentID: 'post-2511',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight,Gumbo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling the different states on an FxRadioButton control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/02/20/styling-the-different-states-on-an-fxradiobutton-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/02/20/styling-the-different-states-on-an-fxradiobutton-control-in-flex-gumbo/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 15:03:43 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxRadioButton]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/02/20/styling-the-different-states-on-an-fxradiobutton-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can style the various states on a Flex Gumbo FxRadioButton control using a &#60;Style&#62; block.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can style the various states on a Flex Gumbo FxRadioButton control using a &lt;Style&gt; block.</p>
<p>Full code after the jump.</p>
<p><span id="more-970"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--  --&gt;
&lt;Application name="FxRadioButton_statesStyle_fontWeight_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Style&gt;
        FxRadioButton:upAndSelected,
        FxRadioButton:overAndSelected,
        FxRadioButton:downAndSelected {
            fontWeight: bold;
        }
    &lt;/Style&gt;

    &lt;FxRadioButtonGroup id="gr1" /&gt;

    &lt;VGroup width="100"&gt;
        &lt;FxRadioButton label="One" /&gt;
        &lt;FxRadioButton label="Two" /&gt;
        &lt;FxRadioButton label="Three" /&gt;
        &lt;FxRadioButton label="Four" /&gt;
        &lt;FxRadioButton label="Five" /&gt;
    &lt;/VGroup&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Styling the different states on an FxRadioButton control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/02/20/styling-the-different-states-on-an-fxradiobutton-control-in-flex-gumbo/',contentID: 'post-970',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight,Gumbo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/02/20/styling-the-different-states-on-an-fxradiobutton-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Displaying a bold font style on a TextBox control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 07:42:57 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FontLookup]]></category>
		<category><![CDATA[FXG]]></category>
		<category><![CDATA[TextBox]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can specify a bold font style on a device and embedded font on a Flex Gumbo TextBox control by setting the fontWeight style.<br /> Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can specify a bold font style on a device and embedded font on a Flex Gumbo TextBox control by setting the <code>fontWeight</code> style.<br />
Full code after the jump.</p>
<p><span id="more-899"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/ --&gt;
&lt;Application name="TextBox_fontWeight_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;Style&gt;
        @font-face {
            src: url("C:/Windows/Fonts/ARIALBD.TTF");
            fontFamily: "ArialEmbedded";
            fontWeight: "bold";
            cff: true;
        }
    &lt;/Style&gt;

    &lt;VGroup&gt;
        &lt;TextBox id="deviceTextBox"
                text="The quick brown fox jumps over the lazy dog. (device)"
                fontFamily="Arial"
                fontWeight="bold"
                fontLookup="device" /&gt;

        &lt;TextBox id="embeddedCFFTextBox"
                text="The quick brown fox jumps over the lazy dog. (embeddedCFF)"
                fontFamily="ArialEmbedded"
                fontWeight="bold"
                fontLookup="embeddedCFF"/&gt;
    &lt;/VGroup&gt;

&lt;/Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Displaying a bold font style on a TextBox control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/',contentID: 'post-899',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight,Gumbo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/12/12/displaying-a-bold-font-style-on-a-textbox-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the font weight on a charting Legend control in Flex</title>
		<link>http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 06:31:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Charting]]></category>
		<category><![CDATA[Legend]]></category>
		<category><![CDATA[LegendItem]]></category>
		<category><![CDATA[PieChart]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set the font weight of a Flex Charting Legend control by setting the fontWeight style on the LegendItem CSS selector.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/ --&#62; &#60;mx:Application name=&#34;LegendItem_fontWeight_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62; &#160; &#60;mx:Style&#62; LegendItem { fontWeight: normal; } &#60;/mx:Style&#62; &#160; &#60;mx:XMLListCollection id=&#34;dp&#34;&#62; &#60;mx:source&#62; &#60;mx:XMLList&#62; &#60;product label=&#34;Product [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the font weight of a Flex Charting Legend control by setting the <code>fontWeight</code> style on the LegendItem CSS selector.</p>
<p><span id="more-807"></span></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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;LegendItem_fontWeight_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        LegendItem {
            fontWeight: normal;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XMLListCollection</span> id=<span style="color: #ff0000;">&quot;dp&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:source</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 1&quot;</span> data=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 2&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 3&quot;</span> data=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 4&quot;</span> data=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 5&quot;</span> data=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;product label=<span style="color: #ff0000;">&quot;Product 6&quot;</span> data=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:source</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XMLListCollection</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> styleName=<span style="color: #ff0000;">&quot;opaquePanel&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">            height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieChart</span> id=<span style="color: #ff0000;">&quot;pieChart&quot;</span></span>
<span style="color: #000000;">                dataProvider=<span style="color: #ff0000;">&quot;{dp}&quot;</span></span>
<span style="color: #000000;">                showDataTips=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:series</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:PieSeries</span> id=<span style="color: #ff0000;">&quot;pieSeries&quot;</span></span>
<span style="color: #000000;">                        field=<span style="color: #ff0000;">&quot;@data&quot;</span></span>
<span style="color: #000000;">                        nameField=<span style="color: #ff0000;">&quot;@label&quot;</span></span>
<span style="color: #000000;">                        filters=<span style="color: #ff0000;">&quot;[]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:series</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:PieChart</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ControlBar</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Legend</span> dataProvider=<span style="color: #ff0000;">&quot;{pieChart}&quot;</span></span>
<span style="color: #000000;">                    direction=<span style="color: #ff0000;">&quot;horizontal&quot;</span></span>
<span style="color: #000000;">                    horizontalGap=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">                    width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ControlBar</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/LegendItem_fontWeight_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/LegendItem_fontWeight_test/bin/main.html" width="100%" height="500"></iframe></p>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;LegendItem_fontWeight_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&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: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.charts.Legend;</span>
<span style="color: #339933;">            import mx.charts.PieChart;</span>
<span style="color: #339933;">            import mx.charts.series.PieSeries;</span>
<span style="color: #339933;">            import mx.collections.XMLListCollection;</span>
<span style="color: #339933;">            import mx.containers.ControlBar;</span>
<span style="color: #339933;">            import mx.containers.Panel;</span>
<span style="color: #339933;">            import mx.containers.TileDirection;</span>
&nbsp;
<span style="color: #339933;">            private var dp:XMLListCollection;</span>
<span style="color: #339933;">            private var legend:Legend;</span>
<span style="color: #339933;">            private var panel:Panel;</span>
<span style="color: #339933;">            private var pieChart:PieChart;</span>
<span style="color: #339933;">            private var pieSeries:PieSeries;</span>
&nbsp;
<span style="color: #339933;">            private function init():void {</span>
<span style="color: #339933;">                dp = new XMLListCollection();</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 1&quot; data=&quot;3&quot; /&gt;);</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 2&quot; data=&quot;1&quot; /&gt;);</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 3&quot; data=&quot;4&quot; /&gt;);</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 4&quot; data=&quot;1&quot; /&gt;);</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 5&quot; data=&quot;5&quot; /&gt;);</span>
<span style="color: #339933;">                dp.addItem(&lt;product label=&quot;Product 6&quot; data=&quot;9&quot; /&gt;);</span>
&nbsp;
<span style="color: #339933;">                pieSeries = new PieSeries();</span>
<span style="color: #339933;">                pieSeries.field = &quot;@data&quot;;</span>
<span style="color: #339933;">                pieSeries.nameField = &quot;@label&quot;;</span>
<span style="color: #339933;">                pieSeries.filters = [];</span>
&nbsp;
<span style="color: #339933;">                pieChart = new PieChart();</span>
<span style="color: #339933;">                pieChart.dataProvider = dp;</span>
<span style="color: #339933;">                pieChart.showDataTips = true;</span>
<span style="color: #339933;">                pieChart.percentWidth = 100;</span>
<span style="color: #339933;">                pieChart.percentHeight = 100;</span>
<span style="color: #339933;">                pieChart.series = [pieSeries];</span>
&nbsp;
<span style="color: #339933;">                legend = new Legend();</span>
<span style="color: #339933;">                legend.dataProvider = pieChart;</span>
<span style="color: #339933;">                legend.direction = TileDirection.HORIZONTAL;</span>
<span style="color: #339933;">                legend.percentWidth = 100;</span>
<span style="color: #339933;">                legend.setStyle(&quot;horizontalGap&quot;, 100);</span>
&nbsp;
<span style="color: #339933;">                var controlBar:ControlBar = new ControlBar();</span>
<span style="color: #339933;">                controlBar.percentWidth = 100;</span>
<span style="color: #339933;">                controlBar.addChild(legend);</span>
&nbsp;
<span style="color: #339933;">                panel = new Panel();</span>
<span style="color: #339933;">                panel.styleName = &quot;opaquePanel&quot;;</span>
<span style="color: #339933;">                panel.percentWidth = 100;</span>
<span style="color: #339933;">                panel.percentHeight = 100;</span>
<span style="color: #339933;">                panel.addChild(pieChart);</span>
<span style="color: #339933;">                panel.addChild(legend);</span>
<span style="color: #339933;">                addChild(panel);</span>
&nbsp;
<span style="color: #339933;">                var legendItemCSS:CSSStyleDeclaration;</span>
<span style="color: #339933;">                legendItemCSS = StyleManager.getStyleDeclaration(&quot;LegendItem&quot;);</span>
<span style="color: #339933;">                legendItemCSS.setStyle(&quot;fontWeight&quot;, &quot;normal&quot;);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="new">For an example of changing the <code>fontWeight</code> style on the MX Legend control in Flex 4, see <a href="http://blog.flexexamples.com/2010/02/23/setting-the-font-weight-on-the-mx-legend-control-in-flex-4/">&#8220;Setting the font weight on the MX Legend control in Flex 4&#8243;</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the font weight on a charting Legend control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/',contentID: 'post-807',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/09/25/setting-the-font-weight-on-a-charting-legend-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using an embedded font with the LinkButton control in Flex</title>
		<link>http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 06:54:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[LinkButton]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with the Flex LinkButton control by setting the fontFamily and fontWeight styles.</p> <p class="note">The LinkButton control uses a bold font weight by default, so you need to either embed the bold font weight, or set the LinkButton control&#8217;s fontWeight style to normal.</p> <p>Full code [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with the Flex LinkButton control by setting the <code>fontFamily</code> and <code>fontWeight</code> styles.</p>
<p class="note">The LinkButton control uses a bold font weight by default, so you need to either embed the bold font weight, or set the LinkButton control&#8217;s <code>fontWeight</code> style to normal.</p>
<p>Full code after the jump.</p>
<p><span id="more-785"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkButton_fontFamily_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/ --&gt;
&lt;mx:Application name="LinkButton_fontFamily_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Arial");
            fontFamily: ArialEmbedded;
            fontWeight: bold;
        }

        LinkButton {
            fontFamily: ArialEmbedded;
        }
    &lt;/mx:Style&gt;

    &lt;mx:LinkButton id="linkButton"
            label="LinkButton"
            rotation="45" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkButton_fontFamily_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/LinkButton_fontFamily_test/bin/main.html" width="100%" height="150"></iframe></p>
<p>You can also embed the font using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/LinkButton_fontFamily_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/ --&gt;
&lt;mx:Application name="LinkButton_fontFamily_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.LinkButton;

            [Embed(systemFont="Arial",
                    fontName="ArialEmbedded",
                    fontWeight="bold",
                    mimeType="application/x-font")]
            private const arialEmbedded:Class;

            private var linkButton:LinkButton;

            private function init():void {
                linkButton = new LinkButton();
                linkButton.label = "LinkButton";
                linkButton.rotation = 45;
                linkButton.setStyle("fontFamily", "ArialEmbedded");
                addChild(linkButton);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using an embedded font with the LinkButton control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/',contentID: 'post-785',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontFamily,fontWeight',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/09/04/using-an-embedded-font-with-the-linkbutton-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using an embedded font with the TabBar control in Flex</title>
		<link>http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 06:47:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[TabBar]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with the Flex TabBar control by setting the fontFamily and fontWeight styles.</p> <p></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/ --&#62; &#60;mx:Application name="TabBar_fontFamily_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Style&#62; @font-face { src: local("Base 02"); fontFamily: EmbeddedBase02; fontWeight: bold; } &#60;/mx:Style&#62; &#60;mx:VBox id="vBox" verticalGap="0" width="320" height="200"&#62; &#60;mx:TabBar id="tabBar" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with the Flex TabBar control by setting the <code>fontFamily</code> and <code>fontWeight</code> styles.</p>
<p><span id="more-661"></span></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/ --&gt;
&lt;mx:Application name="TabBar_fontFamily_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Base 02");
            fontFamily: EmbeddedBase02;
            fontWeight: bold;
        }
    &lt;/mx:Style&gt;

    &lt;mx:VBox id="vBox"
            verticalGap="0"
            width="320"
            height="200"&gt;
        &lt;mx:TabBar id="tabBar"
                dataProvider="{viewStack}"
                fontFamily="EmbeddedBase02"
                width="100%" /&gt;
        &lt;mx:ViewStack id="viewStack"
                width="100%"
                height="100%"
                backgroundColor="white"&gt;
            &lt;mx:VBox label="One"&gt;
                &lt;mx:Label text="one..." /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label="Two"&gt;
                &lt;mx:Label text="two..." /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label="Three"&gt;
                &lt;mx:Label text="three..." /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label="Four"&gt;
                &lt;mx:Label text="four..." /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label="Five"&gt;
                &lt;mx:Label text="five..." /&gt;
            &lt;/mx:VBox&gt;
        &lt;/mx:ViewStack&gt;
    &lt;/mx:VBox&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/main.html" width="100%" height="300"></iframe></p>
<p>You can also set the <code>fontFamily</code> style in an external .CSS file or &lt;mx:Style /&gt; block, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
            fontWeight: bold;
        }

        <strong style="color:red;">TabBar {
            fontFamily: EmbeddedBase02;
        }</strong>
    &lt;/mx:Style&gt;

    &lt;mx:VBox id=&quot;vBox&quot;
            verticalGap=&quot;0&quot;
            width=&quot;320&quot;
            height=&quot;200&quot;&gt;
        &lt;mx:TabBar id=&quot;tabBar&quot;
                dataProvider=&quot;{viewStack}&quot;
                width=&quot;100%&quot; /&gt;
        &lt;mx:ViewStack id=&quot;viewStack&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;
                backgroundColor=&quot;white&quot;&gt;
            &lt;mx:VBox label=&quot;One&quot;&gt;
                &lt;mx:Label text=&quot;one...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Two&quot;&gt;
                &lt;mx:Label text=&quot;two...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Three&quot;&gt;
                &lt;mx:Label text=&quot;three...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Four&quot;&gt;
                &lt;mx:Label text=&quot;four...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Five&quot;&gt;
                &lt;mx:Label text=&quot;five...&quot; /&gt;
            &lt;/mx:VBox&gt;
        &lt;/mx:ViewStack&gt;
    &lt;/mx:VBox&gt;

&lt;/mx:Application&gt;
</pre>
<p>Or, you can set the <code>fontFamily</code> style using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/srcview/source/main3.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
            fontWeight: bold;
        }
    &lt;/mx:Style&gt;

    <strong style="color:red;">&lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                tabBar.setStyle(&quot;fontFamily&quot;, &quot;EmbeddedBase02&quot;);
            }
        ]]&gt;
    &lt;/mx:Script&gt;</strong>

    &lt;mx:VBox id=&quot;vBox&quot;
            verticalGap=&quot;0&quot;
            width=&quot;320&quot;
            height=&quot;200&quot;&gt;
        &lt;mx:TabBar id=&quot;tabBar&quot;
                dataProvider=&quot;{viewStack}&quot;
                width=&quot;100%&quot;
                <strong style="color:red;">initialize=&quot;init();&quot;</strong> /&gt;
        &lt;mx:ViewStack id=&quot;viewStack&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;
                backgroundColor=&quot;white&quot;&gt;
            &lt;mx:VBox label=&quot;One&quot;&gt;
                &lt;mx:Label text=&quot;one...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Two&quot;&gt;
                &lt;mx:Label text=&quot;two...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Three&quot;&gt;
                &lt;mx:Label text=&quot;three...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Four&quot;&gt;
                &lt;mx:Label text=&quot;four...&quot; /&gt;
            &lt;/mx:VBox&gt;
            &lt;mx:VBox label=&quot;Five&quot;&gt;
                &lt;mx:Label text=&quot;five...&quot; /&gt;
            &lt;/mx:VBox&gt;
        &lt;/mx:ViewStack&gt;
    &lt;/mx:VBox&gt;

&lt;/mx:Application&gt;
</pre>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/srcview/source/main4.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:comps="comps.*"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;comps:MyComp /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabBar_fontFamily_test/bin/srcview/source/comps/MyComp.as.html">comps/MyComp.as</a></p>
<pre class="code">
package comps {
    import mx.containers.VBox;
    import mx.containers.ViewStack;
    import mx.controls.Label;
    import mx.controls.TabBar;
    import mx.core.Container;

    public class MyComp extends VBox {
        [Embed(systemFont="Base 02",
                fontName="EmbeddedBase02",
                fontWeight="bold",
                advancedAntiAliasing="true",
                mimeType="application/x-font")]
        private var EmbeddedBase02:Class;

        public var tabBar:TabBar;
        public var viewStack:ViewStack;
        public var child1:Container;
        public var child2:Container;
        public var child3:Container;
        public var child4:Container;
        public var child5:Container;

        public function MyComp() {
            super();
            init();
        }

        private function init():void {
            setStyle("verticalGap", 0);
            width = 320;
            height = 240;

            var label1:Label;
            var label2:Label;
            var label3:Label;
            var label4:Label;
            var label5:Label;

            label1 = new Label();
            label1.text =  "one...";

            label2 = new Label();
            label2.text =  "two...";

            label3 = new Label();
            label3.text =  "three...";

            label4 = new Label();
            label4.text =  "four...";

            label5 = new Label();
            label5.text =  "five...";

            child1 = new VBox();
            child1.label = "One";
            child1.addChild(label1);

            child2 = new VBox();
            child2.label = "Two";
            child2.addChild(label2);

            child3 = new VBox();
            child3.label = "Three";
            child3.addChild(label3);

            child4 = new VBox();
            child4.label = "Four";
            child4.addChild(label4);

            child5 = new VBox();
            child5.label = "Five";
            child5.addChild(label5);

            viewStack = new ViewStack();
            viewStack.percentWidth = 100;
            viewStack.percentHeight = 100;
            viewStack.setStyle("backgroundColor", "white");
            viewStack.addChild(child1);
            viewStack.addChild(child2);
            viewStack.addChild(child3);
            viewStack.addChild(child4);
            viewStack.addChild(child5);
            addChild(viewStack);

            tabBar = new TabBar();
            tabBar.dataProvider = viewStack;
            tabBar.percentWidth = 100;
            tabBar.setStyle("fontFamily", "EmbeddedBase02");
            addChildAt(tabBar, 0)
        }
    }
}
</pre>
<p>And finally, if you wanted to use a normal font weight instead of the default bold font weight, you could use the following snippet:</p>
<pre class="code">
&lt;mx:Style&gt;
    @font-face {
        src: local("Base 02");
        fontFamily: EmbeddedBase02;
        fontWeight: normal;
    }

    TabBar {
        fontFamily: EmbeddedBase02;
        tabStyleName: normalTabStyleName;
        selectedTabTextStyleName: normalTabStyleName;
    }

    .normalTabStyleName {
        fontWeight: normal;
    }
&lt;/mx:Style&gt;
</pre>
<p class="alert">Base 02 font by <a href="http://www.stereo-type.net/">www.stereo-type.net</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using an embedded font with the TabBar control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/',contentID: 'post-661',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontFamily,fontWeight',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/06/07/using-an-embedded-font-with-the-tabbar-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using an embedded font with the ComboBox control in Flex</title>
		<link>http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 06:32:52 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with the Flex ComboBox control by setting the fontFamily style.</p> <p></p> <p class="note">By default the ComboBox control&#8217;s label use a bold font weight, whereas the dropdown items use a normal font weight.</p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/ --&#62; &#60;mx:Application name=&#34;ComboBox_fontFamily_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; backgroundColor=&#34;white&#34;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with the Flex ComboBox control by setting the <code>fontFamily</code> style.</p>
<p><span id="more-655"></span></p>
<p class="note">By default the ComboBox control&#8217;s label use a bold font weight, whereas the dropdown items use a normal font weight.</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;ComboBox_fontFamily_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
            fontWeight: bold;
        }
&nbsp;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Array</span> id=<span style="color: #ff0000;">&quot;arr&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;One&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Two&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Three&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Four&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Five&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Array</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ComboBox</span> id=<span style="color: #ff0000;">&quot;comboBox&quot;</span></span>
<span style="color: #000000;">            dataProvider=<span style="color: #ff0000;">&quot;{arr}&quot;</span></span>
<span style="color: #000000;">            fontFamily=<span style="color: #ff0000;">&quot;EmbeddedBase02&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ComboBox_fontFamily_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ComboBox_fontFamily_test/bin/main.html" width="100%" height="200"></iframe></p>
<p class="alert">Base 02 font by <a href="http://www.stereo-type.net/">www.stereo-type.net</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using an embedded font with the ComboBox control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/',contentID: 'post-655',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontFamily,fontWeight',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/06/02/using-an-embedded-font-with-the-combobox-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using embedded fonts with the Accordion container in Flex</title>
		<link>http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 06:46:42 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Accordion]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[headerStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows you how you can use an embedded font with the Flex Accordion container by setting the headerStyleName style.</p> <p>Full code after the jump.</p> <p></p> <p>By default, the Accordion header&#8217;s text is bold. The following example shows how you can set the accordion header&#8217;s font weight to &#8220;normal&#8221; by setting the fontWeight [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can use an embedded font with the Flex Accordion container by setting the <code>headerStyleName</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-653"></span></p>
<p>By default, the Accordion header&#8217;s text is bold. The following example shows how you can set the accordion header&#8217;s font weight to &#8220;normal&#8221; by setting the <code>fontWeight</code> style in the custom accordion headerStyleName style:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerStyleName_fontFamily_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
        }

        Accordion {
            headerStyleName: accordionHeaderStyleName;
        }

        .accordionHeaderStyleName {
            fontFamily: EmbeddedBase02;
            <strong style="color:red;">fontWeight: normal;</strong>
        }
    &lt;/mx:Style&gt;

    &lt;mx:Accordion id=&quot;accordion&quot;
            creationPolicy=&quot;all&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;&gt;
        &lt;mx:VBox label=&quot;Red&quot;
                backgroundColor=&quot;red&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Orange&quot;
                backgroundColor=&quot;haloOrange&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Yellow&quot;
                backgroundColor=&quot;yellow&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Green&quot;
                backgroundColor=&quot;haloGreen&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Blue&quot;
                backgroundColor=&quot;haloBlue&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerStyleName_fontFamily_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerStyleName_fontFamily_test/bin/main.html" width="100%" height="300"></iframe></p>
<p>The following example shows how you can set the accordion header&#8217;s font weight to &#8220;bold&#8221; by setting the <code>fontWeight</code> style in the @font-face style:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Accordion_headerStyleName_fontFamily_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
            <strong style="color:red;">fontWeight: bold;</strong>
        }

        Accordion {
            headerStyleName: accordionHeaderStyleName;
        }

        .accordionHeaderStyleName {
            fontFamily: EmbeddedBase02;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Accordion id=&quot;accordion&quot;
            creationPolicy=&quot;all&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;&gt;
        &lt;mx:VBox label=&quot;Red&quot;
                backgroundColor=&quot;red&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Orange&quot;
                backgroundColor=&quot;haloOrange&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Yellow&quot;
                backgroundColor=&quot;yellow&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Green&quot;
                backgroundColor=&quot;haloGreen&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Blue&quot;
                backgroundColor=&quot;haloBlue&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:Accordion&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using embedded fonts with the Accordion container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/',contentID: 'post-653',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight,headerStyleName',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/05/31/using-embedded-fonts-with-the-accordion-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using an embedded font with the Flex ProgressBar control</title>
		<link>http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/</link>
		<comments>http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 07:41:36 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ProgressBar]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with the ProgressBar control in Flex.</p> <p></p> <p>There are two basic approaches to using an embedded font with a ProgressBar control. By default the progress bar&#8217;s label uses a bold font weight, so the first technique is to set the progress bar&#8217;s fontWeight style [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with the ProgressBar control in Flex.</p>
<p><span id="more-512"></span></p>
<p>There are two basic approaches to using an embedded font with a ProgressBar control. By default the progress bar&#8217;s label uses a bold font weight, so the first technique is to set the progress bar&#8217;s <code>fontWeight</code> style to &#8220;normal&#8221; using MXML or CSS, as shown in the following example:</p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/ --&gt;
&lt;mx:Application name="ProgressBar_fontWeight_test"
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function progressBar_initialize():void {
                progressBar.setProgress(76, 100);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ProgressBar id=&quot;progressBar&quot;
            mode=&quot;manual&quot;
            labelPlacement=&quot;center&quot;
            barColor=&quot;haloBlue&quot;
            borderColor=&quot;black&quot;
            color=&quot;black&quot;
            fontFamily=&quot;EmbeddedBase02&quot;
            fontSize=&quot;48&quot;
            <strong style="color:red;">fontWeight=&quot;normal&quot;</strong>
            trackColors=&quot;[black, black]&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;
            initialize=&quot;progressBar_initialize();&quot; /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_fontWeight_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_fontWeight_test/bin/main.html" width="100%" height="150"></iframe></p>
<p>The second technique shows how you can embed the bold version of a font family in the &lt;mx:Style /&gt; block:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_fontFamily_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local(&quot;Base 02&quot;);
            fontFamily: EmbeddedBase02;
            <strong style="color:red;">fontWeight: bold;</strong>
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function progressBar_initialize():void {
                progressBar.setProgress(76, 100);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ProgressBar id=&quot;progressBar&quot;
            mode=&quot;manual&quot;
            labelPlacement=&quot;center&quot;
            barColor=&quot;haloBlue&quot;
            borderColor=&quot;black&quot;
            color=&quot;black&quot;
            fontFamily=&quot;EmbeddedBase02&quot;
            fontSize=&quot;48&quot;
            trackColors=&quot;[black, black]&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;
            initialize=&quot;progressBar_initialize();&quot; /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_fontFamily_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_fontFamily_test/bin/main.html" width="100%" height="150"></iframe></p>
<p class="alert">Base 02 font by <a href="http://www.stereo-type.net/">www.stereo-type.net</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using an embedded font with the Flex ProgressBar control on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/',contentID: 'post-512',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/02/09/using-an-embedded-font-with-the-flex-progressbar-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting an item&#8217;s font weight in a Flex PopUpButton control&#8217;s pop up menu</title>
		<link>http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/</link>
		<comments>http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 16:26:31 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[PopUpButton]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[popUpStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/</guid>
		<description><![CDATA[<p>The following example shows you how you can set the font weight of the item labels in a PopUpButton control&#8217;s pop up menu in Flex by setting the popUpStyleName and fontWeight styles.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/PopUpButton_popUpStyleName_fontWeight_test/main.mxml">View MXML</a></p> &#60;?xml version=&#34;1.0&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/ --&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;horizontal&#34; verticalAlign=&#34;top&#34; backgroundColor=&#34;white&#34;&#62; &#60;mx:Script&#62; &#60;![CDATA[ import [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can set the font weight of the item labels in a PopUpButton control&#8217;s pop up menu in Flex by setting the <code>popUpStyleName</code> and <code>fontWeight</code> styles.</p>
<p>Full code after the jump.</p>
<p><span id="more-464"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/PopUpButton_popUpStyleName_fontWeight_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/ --&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;horizontal&quot;
        verticalAlign=&quot;top&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Menu;

            [Bindable]
            private var menu:Menu;

            private function initMenu():void {
                menu = new Menu();
                menu.dataProvider = arr;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Array id=&quot;arr&quot;&gt;
        &lt;mx:Object label=&quot;Button&quot; /&gt;
        &lt;mx:Object label=&quot;ButtonBar&quot; /&gt;
        &lt;mx:Object label=&quot;ColorPicker&quot; /&gt;
        &lt;mx:Object label=&quot;ComboBox&quot; /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:Style&gt;
        PopUpButton {
            <strong style="color:red;">popUpStyleName: myCustomPopUpStyleName;</strong>
        }

        .myCustomPopUpStyleName {
           <strong style="color:red;">fontWeight: normal;</strong>
           textAlign: left;
        }
    &lt;/mx:Style&gt;

    &lt;mx:PopUpButton id=&quot;popUpButton&quot;
            label=&quot;Select a control...&quot;
            popUp=&quot;{menu}&quot;
            preinitialize=&quot;initMenu();&quot;
            creationComplete=&quot;popUpButton.open();&quot; /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/PopUpButton_popUpStyleName_fontWeight_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/PopUpButton_popUpStyleName_fontWeight_test/bin/main.html" width="100%" height="150"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting an item\&#039;s font weight in a Flex PopUpButton control\&#039;s pop up menu on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/',contentID: 'post-464',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fontWeight,popUpStyleName',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/01/19/setting-an-items-font-weight-in-a-flex-popupbutton-controls-pop-up-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

