Created
February 27, 2013 15:46
-
-
Save adamstac/5048881 to your computer and use it in GitHub Desktop.
WebKit font-smoothing Sass mixin
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
// WebKit font-smoothing | |
//------------------------------------------------ | |
// References: | |
// | |
// 1. http://maxvoltar.com/sandbox/fontsmoothing/ | |
// 2. http://maxvoltar.com/archive/-webkit-font-smoothing | |
// | |
// Values: none, antialiased (default), subpixel-antialiased | |
// | |
@mixin font-smoothing($value: antialiased) { | |
-webkit-font-smoothing: $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For better cross-browser support, I recommend also adding -moz-osx-font-smoothing support.
From: http://maximilianhoffmann.com/posts/better-font-rendering-on-osx