From 4f05a9748e2b462a3a2a03be80e2f8c2394a7aea Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 9 Aug 2024 17:59:28 -0400 Subject: [PATCH] Rosetta: Unset courier-prime for Vietnamese This font does not support the diacritics used, so every other letter was falling back to a serif. This will force the About page to use the default body font Inter instead, which does support Vietnamese text. --- .../themes/wporg-parent-2021/inc/rosetta-styles.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/wp-content/themes/wporg-parent-2021/inc/rosetta-styles.php b/source/wp-content/themes/wporg-parent-2021/inc/rosetta-styles.php index 374d425a..cd32e6a6 100644 --- a/source/wp-content/themes/wporg-parent-2021/inc/rosetta-styles.php +++ b/source/wp-content/themes/wporg-parent-2021/inc/rosetta-styles.php @@ -137,6 +137,18 @@ function get_locale_settings( $locale ) { ], ], ]; + case 'vi': + return [ + 'typography' => [ + 'fontFamilies' => [ + // Unset courier-prime, does not support Vietnamese diacritics. + [ + 'fontFamily' => '', + 'slug' => 'courier-prime', + ], + ], + ], + ]; } return false; }