-
-
Save nhahv/90ee7486a3307ba2a3ddc9933133d90f to your computer and use it in GitHub Desktop.
Better font smoothing in cross browser
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
html { | |
/* Adjust font size */ | |
font-size: 100%; | |
-webkit-text-size-adjust: 100%; | |
/* Font varient */ | |
font-variant-ligatures: none; | |
-webkit-font-variant-ligatures: none; | |
/* Smoothing */ | |
text-rendering: optimizeLegibility; | |
-moz-osx-font-smoothing: grayscale; | |
font-smoothing: antialiased; | |
-webkit-font-smoothing: antialiased; | |
text-shadow: rgba(0, 0, 0, .01) 0 0 1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment