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 f8abff42..374d425a 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 @@ -109,6 +109,34 @@ function get_locale_settings( $locale ) { ], ], ]; + case 'ckb': + return [ + 'custom' => [ + 'heading' => [ + 'typography' => [ + 'fontFamily' => 'var(--wp--preset--font-family--noto-kufi)', + ], + ], + ], + 'typography' => [ + 'fontFamilies' => [ + [ + 'fontFamily' => '"Noto Kufi Arabic", sans-serif', + 'slug' => 'noto-kufi', + 'name' => 'Noto Kufi Arabic', + ], + // Unset courier-prime & anton, elements using these styles should fall back to Noto Kufi. + [ + 'fontFamily' => '', + 'slug' => 'courier-prime', + ], + [ + 'fontFamily' => '', + 'slug' => 'anton', + ], + ], + ], + ]; } return false; } @@ -130,5 +158,28 @@ function get_locale_styles( $locale ) { return [ 'css' => 'body { font-feature-settings: "palt"; }', ]; + case 'ckb': + return [ + // Force any inline inter styles to use Noto Kufi (used for global header, `.has-inter-font-family`, etc). + 'css' => << [ + 'fontFamily' => 'var(--wp--preset--font-family--noto-kufi)', + ], + 'blocks' => [ + 'core/button' => [ + 'typography' => [ + 'fontFamily' => 'var(--wp--preset--font-family--noto-kufi)', + ], + ], + ], + ]; } }