diff --git a/mu-plugins/global-fonts/NotoSerif/NotoSerifJP-cjk.woff2 b/mu-plugins/global-fonts/NotoSerif/NotoSerifJP-cjk.woff2 new file mode 100644 index 000000000..29d6a26da Binary files /dev/null and b/mu-plugins/global-fonts/NotoSerif/NotoSerifJP-cjk.woff2 differ diff --git a/mu-plugins/global-fonts/index.php b/mu-plugins/global-fonts/index.php index 96fc07ca4..09579e450 100644 --- a/mu-plugins/global-fonts/index.php +++ b/mu-plugins/global-fonts/index.php @@ -135,7 +135,7 @@ function get_font_url( $font, $subset ) { $lower_font = strtolower( trim( $font ) ); $lower_subset = strtolower( trim( $subset ) ); - $valid_subsets = array( 'arrows', 'cyrillic-ext', 'cyrillic', 'greek-ext', 'greek', 'latin-ext', 'latin', 'vietnamese' ); + $valid_subsets = array( 'arrows', 'cyrillic-ext', 'cyrillic', 'greek-ext', 'greek', 'latin-ext', 'latin', 'vietnamese', 'cjk' ); if ( ! in_array( $lower_subset, $valid_subsets ) ) { if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { trigger_error( sprintf( 'Requested font subset %s does not exist.', esc_html( $lower_subset ) ), E_USER_WARNING ); @@ -212,6 +212,10 @@ function get_font_url( $font, $subset ) { $font_folder = 'IBMPlexSans/'; $font_file_name = 'IBMPlexSans-SemiBold-'; break; + case 'noto serif jp': + $font_folder = 'NotoSerif/'; + $font_file_name = 'NotoSerifJP-'; + break; } $filepath = $font_folder . $font_file_name . $lower_subset . '.woff2'; diff --git a/mu-plugins/global-fonts/style.css b/mu-plugins/global-fonts/style.css index d18221943..8c5bcc1ac 100644 --- a/mu-plugins/global-fonts/style.css +++ b/mu-plugins/global-fonts/style.css @@ -1233,3 +1233,16 @@ src: url(./IBMPlexSans/IBMPlexSans-SemiBold-arrows.woff2) format("woff2"); unicode-range: U+2190-2199; } + +/*------------------------------* + * Noto Serif JP * + *------------------------------*/ + +/* cjk */ +@font-face { + font-family: "Noto Serif JP"; + font-weight: 200 900; + font-style: normal; + font-display: swap; + src: url(./NotoSerif/NotoSerifJP-cjk.woff2) format("woff2"); +}