5

I bind some type for my site:

@font-face {
font-family:WILLS;
src:url(WILLS.TTF);
}

In most browsers this types recognize perfectly but IE don't see this type because of ttf extensions. But the problem is that IE10+ aren't support this condition.

<!--[if IE]>...<![endif]-->

Is there any way to make specific css code for IE10 to change type to usuall, for example Tahoma or times and ofcourse change font-size?

11
  • 3
  • found good decision for this issue, any css would be specific for IE9,IE10 - @media screen and (min-width:0\0) { css code for ie9,10}. And converting ttf to eot and adding url(WILLS.EOT) won't help Commented Oct 24, 2013 at 10:38
  • so \0 is for 10 ? and i thought it would be \9 for 19 Commented Oct 24, 2013 at 10:45
  • @Sevar well out of my curiosity I want to know is \0 for IE10 ? Commented Oct 24, 2013 at 10:57
  • this specific css code @media screen and (min-width:0\0) {} works only with IE10 and IE9. I was checked now in IE9,10 Commented Oct 24, 2013 at 11:14

2 Answers 2

6

You will need to specify a EOT file for IE9+ and a TTF file for <= IE8

@font-face {
font-family:WILLS,
src:url(WILLS.TTF),
url(WILLS.EOT); /* IE9+ */
}

If you convert the TTF file to an EOT file and upload both files. IE9 and above will use the EOT file

Sign up to request clarification or add additional context in comments.

Comments

1

I would suggest you look into a webfont generator. It will give you the font types you need to also support IE10 and will make css code which ensures best support cross-platform.

Font Squirrel is the most used/popular out there but there are more

http://www.fontsquirrel.com/tools/webfont-generator

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.