arik
arik

Reputation: 71

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-family: 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

Upvotes: 3

Views: 2600

Answers (2)

Delan Azabani
Delan Azabani

Reputation: 81492

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!

Upvotes: 1

egrunin
egrunin

Reputation: 25083

.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.

Upvotes: 0

Related Questions