<?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>Jozef Chúťka&#039;s blog &#187; font-face</title>
	<atom:link href="http://blog.yoz.sk/tag/font-face/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What fontName to use with embedding?</title>
		<link>http://blog.yoz.sk/2010/03/what-fontname-to-use-with-embedding/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-fontname-to-use-with-embedding</link>
		<comments>http://blog.yoz.sk/2010/03/what-fontname-to-use-with-embedding/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 13:37:55 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontStyle]]></category>
		<category><![CDATA[fontWeight]]></category>
		<category><![CDATA[Helvetica]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=1218</guid>
		<description><![CDATA[This article extends &#8220;Embedding fonts bold vs. black&#8221; post. Sometimes it may be tricky to guess correct fontName with your font. Compilator works with different fontNames than what Flash IDE shows you. Lets say you want to embed fonts from .swf (library) file into .css file. In Flash IDE, properties panel for TextInput, character Family [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yoz.sk/wp-content/uploads/arialBlack-200x134.png" alt="" title="arialBlack" width="200" height="134" class="alignleft size-medium wp-image-676" /></p>
<p>This article extends &#8220;<a href="http://blog.yoz.sk/2009/11/embedding-fonts-bold-vs-black/">Embedding fonts bold vs. black</a>&#8221; post. Sometimes it may be tricky to guess correct fontName with your font. Compilator works with different fontNames than what Flash IDE shows you. Lets say you want to embed fonts from .swf (library) file into .css file. In Flash IDE, properties panel for TextInput, character Family and Style stand for something totaly different that what you gonna need with correct fontName value later in .css file. In fact solution is very easy.</p>
<p><span id="more-1218"></span></p>
<p>For example, for Helvetica font family, Flash IDE offers one Family called &#8220;Helvetica Neue LT Pro&#8221; with different styles &#8220;65 Medium&#8221;, &#8220;55 Roman&#8221;:</p>
<p><img src="http://blog.yoz.sk/wp-content/uploads/helveticaFlashIDE.jpg" alt="" title="helveticaFlashIDE" width="567" height="309" class="alignnone size-full wp-image-1219" /></p>
<p>Here comes the tricky part. When it comes to .css you may want to use:</p>
<pre class="brush: css; title: ; notranslate">@font-face
{
    src: url(&quot;assets/fonts.swf&quot;);
    fontFamily: &quot;Helvetica Neue LT Pro&quot;;
    fontStyle: &quot;65 Medium&quot;;
}
</pre>
<p>&#8230; but compiler would stop you saying:</p>
<pre class="brush: plain; title: ; notranslate">font 'Helvetica Neue LT Pro' with normal weight and regular style not found
Unable to transcode assets/fonts.swf</pre>
<p>&#8230; or something similar.</p>
<p>So how to find out what is the correct fontFamily for compilator? Thankfully, there is an easy help. Locate your .ttf (.otf) file and open it. In my case I have used default system font viewer (Windows XP), but I am sure you can use any solid font viewer application:</p>
<p><img src="http://blog.yoz.sk/wp-content/uploads/helveticaViewer.png" alt="" title="helveticaViewer" width="337" height="277" class="alignnone size-full wp-image-1225" /></p>
<p>&#8230;and there you find your familyName. Now you can embed fonts:</p>
<pre class="brush: css; title: ; notranslate">@font-face
{
    src: url(&quot;assets/fonts.swf&quot;);
    fontFamily: &quot;HelveticaNeueLT Pro 65 Md&quot;;
}

@font-face
{
    src: url(&quot;assets/fonts.swf&quot;);
    fontFamily: &quot;HelveticaNeueLT Pro 55 Roman&quot;;
    fontWeight: bold;
}</pre>
<p>Notice there is different fontFamily and fontWeight (normal vs. bold) used for each font. If you try to use something else (change fontWeight) with these font-face specifications, compiler would stop you again. The fontFamily thing seems to be clear, but for now the thing with fontWeight remains mystery for me (viewer is not saying a thing about it). Flash IDE font family and style are also suggested somehow mysteriously.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/03/what-fontname-to-use-with-embedding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Embedding fonts bold vs. black</title>
		<link>http://blog.yoz.sk/2009/11/embedding-fonts-bold-vs-black/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=embedding-fonts-bold-vs-black</link>
		<comments>http://blog.yoz.sk/2009/11/embedding-fonts-bold-vs-black/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 16:04:49 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Arial]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontWeight]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=675</guid>
		<description><![CDATA[Embedding fonts into flex app can be a tricky things. Lets suggest you need to embed Arial font in both bold and black style. When you open some desktop application using local font list, you notice Arial font family and under this option there is a list of styles. There is a bold and black [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.yoz.sk/wp-content/uploads/arialBlack.png"><img src="http://blog.yoz.sk/wp-content/uploads/arialBlack-200x134.png" alt="arialBlack" title="arialBlack" width="200" height="134" class="alignleft size-medium wp-image-676" /></a></p>
<p><a href="http://www.adobe.com/devnet/flex/quickstart/embedding_assets/#EmbeddingFonts">Embedding fonts</a> into flex app can be a tricky things. Lets suggest you need to embed Arial font in both bold and black style. When you open some desktop application using local font list, you notice <a href="http://blog.yoz.sk/wp-content/uploads/arialBlack.png">Arial font family and under this option there is a list of styles</a>. There is a bold and black style in one list so one would guess it is the same thing setting. Well, it is not. When it comes to embedding into flex, the code varies much more&#8230;</p>
<p><span id="more-675"></span></p>
<p style="clear:both;">css embed code for Arial Bold:</p>
<pre class="brush: css; title: ; notranslate">@font-face {
    src: local(&quot;Arial&quot;);
    fontFamily: &quot;ArialBold&quot;;
    fontWeight: bold;
}</pre>
<p>css embed code for Arial Black:</p>
<pre class="brush: css; title: ; notranslate">@font-face {
    src: local(&quot;Arial Black&quot;);
    fontFamily: &quot;ArialBlack&quot;;
}</pre>
<p>usage:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;mx:Label fontFamily=&quot;ArialBold&quot; fontWeight=&quot;bold&quot; text=&quot;ArialBold&quot;  /&gt;
&lt;mx:Label fontFamily=&quot;ArialBlack&quot; text=&quot;ArialBlack&quot; /&gt;
</pre>
<p>To get available installed fonts on your system use <a href="http://flexscript.wordpress.com/2008/08/14/flex-fonts-style-list-combobox-component/">FontStyleList</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/11/embedding-fonts-bold-vs-black/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

