Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

@font-face failing on localhost

I cannot get my @font-face declaration to work on localhost. Works fine when I choose open from the file menu in the web broswer but not if I use http://localhost/~joev/file.html. Holds true for Safari and FF.


I have tried adding mime types with .htaccess file:


AddType application/vnd.ms-fontobject eot

AddType application/x-font-ttf ttf ttc

AddType font/opentype otf

AddType application/x-font-woff woff

and

AddType font/ttf ttf

AddType font/ttf TTF

AddType font/otf otf

AddType font/otf OTF

and

AddType application/vnd.ms-fontobject .eot

AddType application/octet-stream .otf

AddType application/x-font-ttf .ttf

AddType application/x-woff .woff


and have palced the .htaccess file at the root directory, css directory, and the font directory but no luck. Paths are good because they render on my web host's server.


What am I missing?

MacBook, Mac OS X (10.5.8)

Posted on Feb 1, 2012 1:30 PM

Reply
4 replies

@font-face failing on localhost

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.