From 63c7374827fadc72fbbb128eb04456c4f5d24d13 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Feb 2022 15:11:46 +0000 Subject: [PATCH] Twenty Twenty: Add Noto Serif as a fallback font before Garamond. This aims to provide better experience on Chromebooks. Noto Serif is also the fallback font for Android devices. Follow-up to [46271]. Props sabernhardt, nmschaller. Fixes #50723. git-svn-id: https://develop.svn.wordpress.org/trunk@52661 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwenty/assets/css/editor-style-block-rtl.css | 2 +- .../themes/twentytwenty/assets/css/editor-style-block.css | 2 +- .../twentytwenty/assets/css/editor-style-classic-rtl.css | 2 +- .../themes/twentytwenty/assets/css/editor-style-classic.css | 2 +- src/wp-content/themes/twentytwenty/style-rtl.css | 4 ++-- src/wp-content/themes/twentytwenty/style.css | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 98c02c4819..c3261fd203 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -115,7 +115,7 @@ Inter variable font. Usage: .editor-styles-wrapper ul, .editor-styles-wrapper dl, .editor-styles-wrapper dt { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index ed613946c4..11a3a33f50 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -115,7 +115,7 @@ Inter variable font. Usage: .editor-styles-wrapper ul, .editor-styles-wrapper dl, .editor-styles-wrapper dt { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css index 7cac2383bb..89ec55a63a 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css @@ -74,7 +74,7 @@ body#tinymce.wp-editor.content ol, body#tinymce.wp-editor.content ul, body#tinymce.wp-editor.content dl, body#tinymce.wp-editor.content dt { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css index f3382c5c23..4a4a00e967 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css @@ -74,7 +74,7 @@ body#tinymce.wp-editor.content ol, body#tinymce.wp-editor.content ul, body#tinymce.wp-editor.content dl, body#tinymce.wp-editor.content dt { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index 13f0043aac..0e5191d247 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -3525,7 +3525,7 @@ figure.wp-block-table.is-style-stripes { /* Font Families ----------------------------- */ .entry-content { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } @@ -4120,7 +4120,7 @@ div.comment:first-of-type { .widget_text dl, .widget_text dt, .widget-content .rssSummary { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index e9fcdd43d9..27053cc3e0 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -3547,7 +3547,7 @@ figure.wp-block-table.is-style-stripes { /* Font Families ----------------------------- */ .entry-content { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; } @@ -4154,7 +4154,7 @@ div.comment:first-of-type { .widget_text dl, .widget_text dt, .widget-content .rssSummary { - font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif; + font-family: NonBreakingSpaceOverride, "Hoefler Text", "Noto Serif", Garamond, "Times New Roman", serif; letter-spacing: normal; }