Proper MIME types for Embedded @font-face Fonts

After some exhaustive research, I managed to find the best server settings for serving web fonts. There are a number of font formats that one can set MIME types for, on both Apache and IIS servers. I’ve traditionally had luck with the following:

svg as "image/svg+xml" 
ttf as "application/x-font-ttf" or "application/x-font-truetype" 
otf as "application/x-font-opentype" 
woff as "application/font-woff" (per my August 16, 2013 update below) 
eof as "application/vnd.ms-fontobject"

According to the Internet Engineering Task Force who maintain the initial document regarding Multipurpose Internet Mail Extensions (MIME types) here: https://tools.ietf.org/html/rfc2045#section-5 … it says in specifics:

“It is expected that additions to the larger set of supported types can generally be accomplished by the creation of new subtypes of these initial types. In the future, more top-level types may be defined only by a standards-track extension to this standard. If another top-level type is to be used for any reason, it must be given a name starting with “X-” to indicate its non-standard status and to avoid a potential conflict with a future official name.”

As it were, and over time, additional MIME types get added as standards are created and accepted, therefor we see examples of vendor specific MIME types such as vnd.ms-fontobject and the like.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.