I\'m in the process of building a small intranet application and try, with no luck, to use Adobe font I purchased lately. As I was informed, in our case it\
I tried the ttfpatch tool and it didn't work form me. Internet Exploder 9 and 10 still complained.
I found this nice Git gist and it solved my issues. https://gist.github.com/stefanmaric/a5043c0998d9fc35483d
Just copy and paste the code in your css.
It is true that IE9 requires TTF fonts to have the embedding bits set to Installable. The Generator does this automatically, but we are currently blocking Adobe fonts for other reasons. We may lift this restriction in the near future.
I found eot
file should be put beyond ttf
. If it's under ttf
, thought the font shows correctly, IE9 will still throw an error.
Recommend:
@font-face {
font-family: 'Font-Name';
src: url('../fonts/Font-Name.eot?#iefix') format('embedded-opentype');
src: url('../fonts/Font-Name.ttf') format('truetype');
}
Not Recommend:
@font-face {
font-family: 'Font-Name';
src: url('../fonts/Font-Name.ttf') format('truetype');
src: url('../fonts/Font-Name.eot?#iefix') format('embedded-opentype');
}
You can solve it by following code
@font-face {
font-family: 'Font-Name';
src: url('../fonts/Font-Name.ttf');
src: url('../fonts/Font-Name.eot?#iefix') format('embedded-opentype');
}
I was getting the following error:
CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable.
fontname.ttf
After using the below code my issue got resolved....
src: url('fontname.ttf') format('embedded-opentype')
Thank you guys for helping me!
Cheers,
Renjith.
You should set the format of the ie font to 'embedded-opentype' and not 'eot'. For example:
src: url('fontname.eot?#iefix') format('embedded-opentype')