Created
May 5, 2014 16:37
-
-
Save bullrico/11541595 to your computer and use it in GitHub Desktop.
IE8 icon font smoothing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'icomoon'; | |
src:url('../../fonts/icomoon.eot?-acamik'); | |
src:url('../../fonts/icomoon.eot?#iefix-acamik') format('embedded-opentype'), | |
url('../../fonts/icomoon.woff?-acamik') format('woff'), | |
url('../../fonts/icomoon.ttf?-acamik') format('truetype'), | |
url('../../fonts/icomoon.svg?-acamik#icomoon') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
[class^="icon-"], [class*=" icon-"] { | |
font-family: 'icomoon'; | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
font-variant: normal; | |
text-transform: none; | |
line-height: 1; | |
/* Better Font Rendering =========== */ | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
letter-spacing: 0; | |
/* ADD THIS FOR IE8 */ | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/images/browser_fixes/hIEfix.png,sizingMethod=crop); | |
zoom:1; | |
/* END IE8 FONT-SMOOTHING FIX */ | |
display: inline-block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment