<?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>jbarker.com / blog &#187; css</title>
	<atom:link href="http://www.jbarker.com/blog/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jbarker.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 28 May 2011 22:19:41 +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>&#8220;Resource interpreted as Font but transferred with MIME type &#8230;&#8221;</title>
		<link>http://www.jbarker.com/blog/2011/resource-interpreted-font-transferred-mime-type</link>
		<comments>http://www.jbarker.com/blog/2011/resource-interpreted-font-transferred-mime-type#comments</comments>
		<pubDate>Sat, 28 May 2011 22:08:05 +0000</pubDate>
		<dc:creator>jbarker</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.jbarker.com/blog/?p=91</guid>
		<description><![CDATA[Have you seen a warning like this in your web browser console? &#8220;Resource interpreted as Font but transferred with MIME type ...&#8220; Some browsers, like Google Chrome, will show this warning when a font is downloaded from a web server that sets an unexpected MIME type for fonts. For many font types, there is a [...]]]></description>
			<content:encoded><![CDATA[<p>Have you seen a warning like this in your web browser console?</p>
<blockquote><p>&#8220;<code>Resource interpreted as Font but transferred with MIME type ...</code>&#8220;</p></blockquote>
<p><img src="http://www.jbarker.com/blog/wp-content/uploads/2011/05/chromenewicon.png" alt="Google Chrome web browser" title="Google Chrome web browser" width="400" height="198" class="alignnone size-full wp-image-102" /></p>
<p>Some browsers, like Google Chrome, will show this warning when a font is downloaded from a web server that sets an unexpected MIME type for fonts.</p>
<p>For many font types, there is a solution!</p>
<p><span id="more-91"></span></p>
<p>Update the configuration for your web server with the following MIME type per font file extension:</p>
<ul>
<li>.ttf — font/truetype</li>
<li>.otf — font/opentype</li>
<li>.eot — application/vnd.ms-fontobject</li>
<li>.woff — application/x-font-woff</li>
</ul>
<p>If you are using Apache configuration, you may include the AddType directive for each font type:</p>
<blockquote><p><code>AddType application/vnd.ms-fontobject eot<br />
AddType font/opentype otf<br />
AddType font/truetype ttf<br />
AddType application/x-font-woff woff</code></p></blockquote>
<p>With a specific MIME type configured per font, and not the generic <code>application/octet-stream</code> MIME type, you should no longer see a warning in your web browser console.</p>
<p>This configuration — while effective for cleaning up your console — does not include the technically <a href="/blog/2009/mime-type-css-web-fonts">correct MIME type for fonts</a> like OTF, TTF, and WOFF. For these font types, an official MIME type has not (yet) been approved. An official type for WOFF — <a href="http://www.ietf.org/mail-archive/web/ietf-types/current/msg01115.html">application/font-woff</a> — has been requested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbarker.com/blog/2011/resource-interpreted-font-transferred-mime-type/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Fonts: No MIME Types, No Problem</title>
		<link>http://www.jbarker.com/blog/2011/web-fonts-mime-types</link>
		<comments>http://www.jbarker.com/blog/2011/web-fonts-mime-types#comments</comments>
		<pubDate>Sun, 27 Feb 2011 16:00:40 +0000</pubDate>
		<dc:creator>jbarker</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.jbarker.com/blog/?p=80</guid>
		<description><![CDATA[In a previous post , Correct MIME Type for CSS Web Fonts, I discussed the lack of official, standards-based MIME types for various web fonts. In the 18 months since then, the state of MIME types for web fonts largely remains the same: Because there are no defined MIME types for TrueType, OpenType, and WOFF [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous post , <a href="../2009/mime-type-css-web-fonts">Correct MIME Type for CSS Web Fonts</a>, I discussed the lack of official, standards-based MIME types for various web fonts.</p>
<p>In the 18 months since then, the state of MIME types for web fonts largely remains the same:</p>
<blockquote><p><em>Because there are no defined MIME types for TrueType, OpenType, and WOFF  fonts, the MIME type of the file specified is not considered.</em><br />
— <a href="https://developer.mozilla.org/en/css/@font-face" target="_blank">@font-face, Mozilla Developer Network</a></p></blockquote>
<p><img class="alignnone size-full wp-image-72" title="Web Browser Logos" src="http://www.jbarker.com/blog/wp-content/uploads/2009/08/multibrowser_logos.png" alt="Web Browser Logos" width="414" height="83" /></p>
<p><span id="more-80"></span></p>
<p>However, since then web font support in most major browsers has continued to improve. The lack of official MIME types for web fonts is not a major concern, and it has not slowed further adoption of web fonts in most major web browsers. One emerging font format is WOFF.</p>
<h3>WOFF</h3>
<p>In late 2009, <a href="http://people.mozilla.org/~jkew/woff/" target="_blank">Mozilla debuted the Web Open Font Format (WOFF)</a> specification and soon shipped a working implementation in the <a href="http://hacks.mozilla.org/2010/01/industry-support-for-woff-and-firefox-3-6/" target="_blank">first WOFF-capable web browser, Firefox 3.6</a>. The Mozilla Foundation was then joined by <a href="http://blogs.msdn.com/b/ie/archive/2010/04/23/meet-woff-the-standard-web-font-format.aspx">Microsoft Corporation</a> and Opera Software ASA in April 2010 as they submitted a <a href="http://www.w3.org/Submission/2010/03/">specification for the WOFF file format</a> to the newly chartered <a href="http://www.w3.org/Fonts/WG/">W3C WebFonts Working Group</a>.</p>
<p>Microsoft debuted support for <a href="http://blogs.msdn.com/b/ie/archive/2010/06/23/html5-native-third-ie9-platform-preview-available-for-developers.aspx">WOFF in Internet Explorer 9 platform preview 3</a>. Opera added support for <a href="http://my.opera.com/desktopteam/blog/2011/02/17/a-first-glimpse-at-barracuda">WOFF in Opera 11.10</a>. <a href="http://paulirish.com/2009/chrome-and-font-face-a-summary/#comment-33575">Google Chrome 5.0 added support for WOFF</a>. Curiously still absent among the major web browsers supporting WOFF today is Apple Safari.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbarker.com/blog/2011/web-fonts-mime-types/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Correct MIME Type for CSS Web Fonts</title>
		<link>http://www.jbarker.com/blog/2009/mime-type-css-web-fonts</link>
		<comments>http://www.jbarker.com/blog/2009/mime-type-css-web-fonts#comments</comments>
		<pubDate>Sun, 09 Aug 2009 18:00:21 +0000</pubDate>
		<dc:creator>jbarker</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.jbarker.com/blog/?p=30</guid>
		<description><![CDATA[Support for CSS3 Fonts via @font-face is now available in Microsoft Internet Explorer, Mozilla Firefox, and Apple Safari, with support in Opera and Google Chrome due soon. With increasing support, more sites are being designed with web fonts. However, many web servers are not providing the correct MIME type for these files. For the Apache [...]]]></description>
			<content:encoded><![CDATA[<p>Support for <a href="http://www.w3.org/TR/css3-fonts/">CSS3 Fonts</a> via @font-face is now available in Microsoft Internet Explorer, Mozilla Firefox, and Apple Safari, with support in Opera and Google Chrome due soon.</p>
<p><img class="alignnone size-full wp-image-72" title="Web Browser Logos" src="http://www.jbarker.com/blog/wp-content/uploads/2009/08/multibrowser_logos.png" alt="Web Browser Logos" width="414" height="83" /></p>
<p>With increasing support, more sites are being designed with web fonts. However, many web servers are not providing the correct MIME type for these files.</p>
<p>For the Apache web server, the following configuration in an <code>.htaccess</code> file will provide the correct MIME type for web fonts:</p>
<p><code>AddType application/vnd.ms-fontobject .eot<br />
AddType application/octet-stream .otf .ttf</code></p>
<p><span id="more-30"></span></p>
<p>The <a href="http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addtype">AddType directive</a> for Apache supports multiple file extensions and the values are case-insensitive.</p>
<p>Web fonts are typically one of three file types:</p>
<ul>
<li>OpenType (.otf)</li>
<li>TrueType (.ttf )</li>
<li>Embedded OpenType (.eot)</li>
</ul>
<p>For many common file types found on the web, there is a dedicated MIME type defined. That is not the case for some font file types. Both OpenType and TrueType files do not have assigned <a href="http://www.iana.org/assignments/media-types/">MIME media types</a>.</p>
<p>There is an assigned <a href="http://www.iana.org/assignments/media-types/application/vnd.ms-fontobject">MIME type for Embedded OpenType (.eot) files</a>: <code>application/vnd.ms-fontobject</code></p>
<p>The MIME type <code>application/octet-stream</code> is used is to indicate binary data that does not have a more specific, assigned MIME type. In practice it is often used as the default MIME for binary, non-text data that should be downloaded to a file. See <a href="http://www.rfc-editor.org/rfc/rfc2046.txt">RFC 2046</a> for more details.</p>
<p><strong>Update</strong> (27 February 2011): You may also be interested in the post <a href="http://www.jbarker.com/blog/2011/web-fonts-mime-types">Web Fonts: No MIME Types, No Problem</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbarker.com/blog/2009/mime-type-css-web-fonts/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

