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
  • Save peiris/4563ddd840d12e7d2ec45b9d4b797e9c to your computer and use it in GitHub Desktop.
Save peiris/4563ddd840d12e7d2ec45b9d4b797e9c to your computer and use it in GitHub Desktop.

Revisions

  1. @hsleonis hsleonis revised this gist Mar 24, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion better-font-smoothing.css
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,11 @@
    p {
    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;
  2. @hsleonis hsleonis revised this gist Mar 24, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions better-font-smoothing.css
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    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;
    }
  3. @hsleonis hsleonis created this gist Feb 17, 2016.
    5 changes: 5 additions & 0 deletions better-font-smoothing.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
    }