Skip to content

Commit e8b6aff

Browse files
committed
Twenty Nineteen: Add font smoothing to editor styles.
This brings consistency between editor and front-end typography. Props laurelfulford, sabernhardt, audrasjb. Fixes #45909. git-svn-id: https://develop.svn.wordpress.org/trunk@54106 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6b0c7c2 commit e8b6aff

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/wp-content/themes/twentynineteen/style-editor.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ body .wp-block.aligncenter {
659659

660660
/** === Base Typography === */
661661
body {
662+
-webkit-font-smoothing: antialiased;
663+
-moz-osx-font-smoothing: grayscale;
662664
font-size: 22px;
663665
font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif;
664666
line-height: 1.8;

src/wp-content/themes/twentynineteen/style-editor.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ body {
9494
/** === Base Typography === */
9595

9696
body {
97+
-webkit-font-smoothing: antialiased;
98+
-moz-osx-font-smoothing: grayscale;
9799
font-size: $font__size_base;
98100
@include font-family( $font__body );
99101
line-height: $font__line-height-body;

0 commit comments

Comments
 (0)