How to embed Hebrew fonts to a website?
I was trying to embed few hebrew fonts to a website.
using this code in my css file :
@font-face { font-fa开发者_开发百科mily: tamruta; src: url('/css/tamruta.eot'); src: local(tamruta), url('/css/tamruta.ttf') format('opentype'); }
it supposw to work on all browsers. some how it doesn't work, and I have a massage while trying to upload the application (working with appengine) :
Could not guess mimetype for css/tamruta.ttf. Using application/octet-stream. Could not guess mimetype for css/tamruta.eot. Using application/octet-stream.
Do you have any idea? or maybe another way to embed fonts to my website.
thanks, arik
Those messages should be warnings and shouldn't be a problem, as there is no official MIME type for OpenType fonts. You should send your EOT files as application/vnd.ms-fontobject
if possible, though.
Edit: It seems to work just fine for me!
.eot is only for IE.
Go to the FontSquirrel site, use the @font-face Kit Generator. It will create all the files you need for cross-browser support.
精彩评论