Skip to content

Instantly share code, notes, and snippets.

@AndersDJohnson
Last active June 5, 2019 13:32
Show Gist options
  • Save AndersDJohnson/259c945c277b38e267f9 to your computer and use it in GitHub Desktop.
Save AndersDJohnson/259c945c277b38e267f9 to your computer and use it in GitHub Desktop.
CSS Font Smoothing
/**
* http://blakepetersen.io/how-to-clean-up-chrome-and-safaris-webfont-rendering/
*/
.smooth-stroke {
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: .5px;
-webkit-text-stroke-color: rgba(0,0,0,0.5);
}
.smooth-shadow {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
.smooth-legible {
text-rendering: optimizelegibility;
}
.smooth-subpixel {
-webkit-font-smoothing: subpixel-antialiased;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment