<?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>The Bright Lines &#187; EOT</title>
	<atom:link href="http://www.thebrightlines.com/tag/eot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebrightlines.com</link>
	<description>HTML, CSS, Javascript and more</description>
	<lastBuildDate>Tue, 17 Jan 2012 22:00:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Implementing font-face cross domain</title>
		<link>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/</link>
		<comments>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 21:13:59 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=363</guid>
		<description><![CDATA[Firefox is fussy about fonts residing on other domains.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still in the middle of a redesign of my <a href="http://electricspace.blogspot.com/">personal weblog</a>, but I&#8217;m glad I got the font-face working. It was a hard nut to crack. The source of all the trouble was that Firefox would load font files from other domains. Although the domain restriction isn&#8217;t making things easier, it is sort of sensible.</p>
<p>Internet Explorer is the only browser that supports EOT, a font format that has digital rights management. That way you can make sure that your $200 font isn&#8217;t downloaded and used by everybody on the internet.</p>
<p>But like I said: IE is the only browser that can understand that file type. So Mozilla apparently implemented some sort of protection against font hijackers: It will only accept fonts from domains that specifically allow fonts to be downloaded. In case of Apache you have to add the following code below to the .htaccess file. I found it on <a href="http://openfontlibrary.org/wiki/Web_Font_linking_and_Cross-Origin_Resource_Sharing">Open Font Library</a>.</p>
<p><code>&lt;FilesMatch "\.(ttf|otf|eot)$"&gt;<br />
&lt;IfModule mod_headers.c&gt;<br />
Header set Access-Control-Allow-Origin "*"<br />
&lt;/IfModule&gt;<br />
&lt;/FilesMatch&gt;</code></p>
<p>This does not help you prevent people from stealing your font, but it will protect you from web developers who want to add the URL to the font on your domain in their font-face declaration. It&#8217;s not really a solution if you ask me. It seems more like a <em>gesture</em> to the creators of fonts.</p>
<p>It appears you could replace the asteriks with the domain of your website, but in my case (http://electricspace.blogspot.com/) did not do the job.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/' rel='bookmark' title='Permanent Link: The trouble with @font-face'>The trouble with @font-face</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/' rel='bookmark' title='Permanent Link: No sign of @font-face in Chrome 4'>No sign of @font-face in Chrome 4</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
<li><a href='http://www.thebrightlines.com/2010/03/18/font-rendering-in-ie9/' rel='bookmark' title='Permanent Link: Web font rendering in IE9'>Web font rendering in IE9</a></li>
<li><a href='http://www.thebrightlines.com/2010/03/09/new-web-font-service-ascender-corporation/' rel='bookmark' title='Permanent Link: New web font service: Ascenderfonts.com'>New web font service: Ascenderfonts.com</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My favorite for converting fonts to EOT</title>
		<link>http://www.thebrightlines.com/2009/12/10/251/</link>
		<comments>http://www.thebrightlines.com/2009/12/10/251/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 06:39:33 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Fontsquirrel]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=251</guid>
		<description><![CDATA[Webfonts are fun, but converting fonts to EOT can be a drag. But I found a good conversion service from Fontsquirrel]]></description>
			<content:encoded><![CDATA[<h2>ttf2eot</h2>
<p>In order to use webfonts in your website you have to convert regular fonts to Microsofts EOT format. Normally I would use the online version of ttf2eot, which works reasonably well. As long if you have a TTF. If you have another type of font like a OTF, you have to find another converter first.</p>
<h2>WEFT</h2>
<p>In case ttf2eot fails with a particular font (like in my case) I grudgingly use Microsofts WEFT tool. I dislike WEFT for its instability and weird workflow/interface. But last time I tried it, it didn&#8217;t do a good job at all. Only 3 of the 4 fonts I had to convert to EOT were recognized and none of that 3 fonts worked in IE.</p>
<h2>Fontsquirrel</h2>
<p>Then while looking for a manual on WEFT, I came across the free <a href="http://www.fontsquirrel.com/fontface/generator">@font-face Kit Generator</a> of Fontsquirrel. And man, did <em>that</em> save the day. Uploading and converting the fonts was very easy. On top of it, you get an example web page packed in a zip with the webfonts in it. It looks something like the screenshot below. The service can also convert fonts to <strong>WOFF</strong> (Firefox) and <strong>SVG</strong> (Chrome &amp; iPhone).</p>
<div class="wp-caption alignnone" style="width: 585px"><img title="Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes." src="/article-data/images/Fontsquirrel.png" alt="Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes." width="575" height="167" /><p class="wp-caption-text">Fontsquirrel not only converts your fonts to EOT, but also shows an example how it would look like in your browser in various font sizes.</p></div>
<h2>What to look out for in Fontsquirrel</h2>
<p>The only thing that did go wrong was the hinting. If I chose the default option “Use existing hints” the letter “B” did not render well as you can see in the screenshot below. When I chose to remove the hinting, the conversion was successful.</p>
<div class="wp-caption alignnone" style="width: 213px"><img title="Fontsquirrel too can get it wrong. Always check all the types" src="/article-data/images/Fontsquirrel2.png" alt="Fontsquirrel too can get it wrong. Always check all the types" width="203" height="167" /><p class="wp-caption-text">Fontsquirrel too can get it wrong. Always check all the types</p></div>
<div class="wp-caption alignnone" style="width: 307px"><img title="The problem in the previous piccture was cleard by removing all hints." src="/article-data/images/Fontsquirrel3.png" alt="The problem in the previous piccture was cleard by removing all hints." width="297" height="101" /><p class="wp-caption-text">The problem in the previous piccture was cleard by removing all hints.</p></div>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/' rel='bookmark' title='Permanent Link: The trouble with @font-face'>The trouble with @font-face</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/24/test-popular-professional-fonts-as-webfont/' rel='bookmark' title='Permanent Link: Test: Popular professional fonts as webfont'>Test: Popular professional fonts as webfont</a></li>
<li><a href='http://www.thebrightlines.com/2010/02/28/web-fonts-services-list/' rel='bookmark' title='Permanent Link: List of web fonts services and resources'>List of web fonts services and resources</a></li>
<li><a href='http://www.thebrightlines.com/2010/04/18/interview-with-ethan-dunham-of-fontsquirrel-and-fontspring/' rel='bookmark' title='Permanent Link: Interview with Ethan Dunham of Fontsquirrel and Fontspring'>Interview with Ethan Dunham of Fontsquirrel and Fontspring</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/12/10/251/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The trouble with @font-face</title>
		<link>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/</link>
		<comments>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:02:01 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[EOT]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=73</guid>
		<description><![CDATA[All major browsers are able to display fonts that are not installed on the computer, but downloadable from the web through the CSS-technique @font-face. But there are some caveats.]]></description>
			<content:encoded><![CDATA[<p>Finally it seems like we&#8217;re getting rid of the shackles of webfonts. With the implementation of the CSS-technique @font-face in Firefox 3.5, Safari and Opera we&#8217;re not only able to choose between fonts like Arial, Times and Courier, but also between any TTF or OTF on our computers. IE already had an implementation of @font-face for years that only supports a proprietary format called EOT,  but both 2 techniques work together perfectly in one CSS file.</p>
<h2>If custom fonts are so great, Why isn&#8217;t anyone using it?</h2>
<p>In case you&#8217;re already in the process of removing that lame Times New Roman from your computer: look around on the web. There&#8217;s almost no website to be found that shows non-standard fonts through the @font-face technique. They all use images or sIFR. So why is no-one using @font-face? I decided to set up a <a href="http://www.thebrightlines.com/article-data/downloads/font-face2/index.html" target="_blank">@font-face test page</a> and try it in different browsers and found a few shortcomings:</p>
<h3>No Chrome</h3>
<p>Although Chrome is <em>able</em> to show custom fonts it&#8217;s disabled by default as reported on <a href="http://opentype.info/blog/2009/04/16/google-chrome-with-webfonts-support/">opentype.info</a>. It appears that you can enable it by adding the option <code>-enable-remote-fonts.</code> It&#8217;s not clear if remote fonts are going to enabled by default soon, but I guess the Chrome team first have to address security issues that come with the use of webfonts.</p>
<h3>Text flashing in Firefox</h3>
<p>When loading the page, Firefox first shows the text in a default font. Only after the TTF or OTF is loaded, it will change the text accordingly. Even when I reload the page, the texts in the web page flashes from web font to TrueType font. Although it&#8217;s not a a nice effect, it&#8217;s no disaster either.</p>
<h3>IE7+ in high security level</h3>
<p>IE7 and IE8 in the highest security level will not show custom fonts, but will show a webfont. I&#8217;ve never ever had IE in the highest security level, but I reckon some will. And I guess many large organizations will have IE set to the highest security level. So be prepared that some people won&#8217;t see your carefully crafted website like you intended.</p>
<h3>Deal breaker: IE6 in high security level</h3>
<p>Well, until now the worst that could happen is that a browser won&#8217;t show a custom font but will default to a system font installed on your computer. But using custom fonts in IE6 is close to impossible. IE supports @font-face since IE4, but after the release of IE6 Microsoft decided to crank up the security. This resulted in a dialogue box that nicely asks if you&#8217;d like to download the custom font that might be a security breach. No problem. Until you click a link. Or even refresh the page. You&#8217;ll get that dialogue box once again. Huh? Didn&#8217;t I just answer that question? I&#8217;m still on the website, so why do I have to decide once again if I want to download a font that&#8217;s most likely still in my cache?</p>
<p><img class="alignright" title="The dreaded IE6 popup that just wont go away" src="http://www.thebrightlines.com/article-data/images/IE6-fontface.png" alt="" />There goes your usable website down the drain. Like I said: I don&#8217;t think that many people will have their security set that high, but it still is a real deal breaker. I suggest that it&#8217;s best to show no custom fonts at all in IE6. You can do that by loading an alternate CSS file with <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a> (tip of a colleague of mine). No fancy fonts is still better than the risk of scaring away visitors.</p>
<h3>Last but not least: Converting fonts to EOT</h3>
<p>Like I said earlier: Microsoft does not support TTF or OTF. That&#8217;s because if you link your CSS to a font file it has to be downloadable for anyone. That&#8217;s sour if you just paid a few hundred bucks for some premium font. Not to mention for the persons or companies who made that font. So Microsoft came up with a font format that&#8217;s not usable as a regular font and that&#8217;s restricted to some specific list of domains. Perfect.</p>
<p>But WEFT, the program to create EOT font files that Microsoft publicized, is awkward in use (if you ask me) and just doesn&#8217;t work on my Vista PC. It crashes before I&#8217;m able to convert a single font. There is an open source program called <a href="http://code.google.com/p/ttf2eot/">ttf2eot</a> and there are even websites that convert fonts with that program like the one on <a href="http://www.kirsle.net/wizards/ttf2eot.cgi">www.kirsle.net</a>. But ttf2eot is still version 0.0.2-2, so that sounds very alpha to me although it seems to do a good job. So be sure to check first if you are able to convert a font before you promise something to the costumer.</p>
<p>An other way to protect the authors of fonts (and yourself as a user that paid a lot of money) is the use of <a href="http://opentype.info/blog/2009/07/29/why-webfont-services-are-the-future-of-fonts-on-the-web/">webfont services</a> that supply the raw font. That way you can use a specific font without having to worry that you become an unintentionally illegal provider of premium fonts.</p>
<h2>But it will still change the web</h2>
<p>So there are still some hurdles to overcome. But it&#8217;s clear that it won&#8217;t take long before the web will be significantly different from what we know now because the use of custom fonts. Although I&#8217;m convinced that with the plethora of available fonts, system fonts like Arial will stay an all-time favorite for a long time.</p>
<h2><em>Update</em></h2>
<p>I had some good feedback (see comments) with some great links:</p>
<ul>
<li><a href="http://www.fontsquirrel.com/fontface/generator">ttf2eot tutorial</a></li>
<li><a href="http://www.fontsquirrel.com/fontface/generator">Font squirrels font font-face generator</a></li>
<li><a href="http://nicewebtype.com/notes/2009/10/30/how-to-use-css-font-face/">How to use CSS font-face</a></li>
<li><a href="http://www.alistapart.com/articles/dynatext/">PHP font replacement</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2010/01/12/implementing-font-face-cross-domain/' rel='bookmark' title='Permanent Link: Implementing font-face cross domain'>Implementing font-face cross domain</a></li>
<li><a href='http://www.thebrightlines.com/2009/11/07/no-sign-of-font-face-in-chrome-4/' rel='bookmark' title='Permanent Link: No sign of @font-face in Chrome 4'>No sign of @font-face in Chrome 4</a></li>
<li><a href='http://www.thebrightlines.com/2009/12/10/251/' rel='bookmark' title='Permanent Link: My favorite for converting fonts to EOT'>My favorite for converting fonts to EOT</a></li>
<li><a href='http://www.thebrightlines.com/2010/03/18/font-rendering-in-ie9/' rel='bookmark' title='Permanent Link: Web font rendering in IE9'>Web font rendering in IE9</a></li>
<li><a href='http://www.thebrightlines.com/2010/01/20/webfont-pitfalls/' rel='bookmark' title='Permanent Link: Webfont pitfalls'>Webfont pitfalls</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/11/01/the-trouble-with-font-face/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

