Skip to content

Instantly share code, notes, and snippets.

@peiris
Forked from hsleonis/better-font-smoothing.css
Created October 15, 2018 06:12
Show Gist options
  • Select an option

  • Save peiris/4563ddd840d12e7d2ec45b9d4b797e9c to your computer and use it in GitHub Desktop.

Select an option

Save peiris/4563ddd840d12e7d2ec45b9d4b797e9c to your computer and use it in GitHub Desktop.
Better font smoothing in cross browser
p {
font-variant-ligatures: none;
-webkit-font-variant-ligatures: none;
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