From e8b6aff9d76da47feddcfecab3433ef3f615b6ad Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 8 Sep 2022 22:40:54 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentynineteen/style-editor.css | 2 ++ src/wp-content/themes/twentynineteen/style-editor.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index 522bb790b6..1e0bd69390 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -659,6 +659,8 @@ body .wp-block.aligncenter { /** === Base Typography === */ body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; font-size: 22px; font-family: "NonBreakingSpaceOverride", "Hoefler Text", Garamond, "Times New Roman", serif; line-height: 1.8; diff --git a/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss index db50c94383..8359aacacb 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.scss +++ b/src/wp-content/themes/twentynineteen/style-editor.scss @@ -94,6 +94,8 @@ body { /** === Base Typography === */ body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; font-size: $font__size_base; @include font-family( $font__body ); line-height: $font__line-height-body;