Skip to content

Commit

Permalink
Rosetta: Unset courier-prime for Vietnamese
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ryelle committed Aug 9, 2024
1 parent c8eb483 commit 4f05a97
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/wp-content/themes/wporg-parent-2021/inc/rosetta-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4f05a97

Please sign in to comment.