Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ability to specify a different default editor font per locale #11826
Allow translators to specifying a different default font based on the language/locale. The translator can specify a different Google font to load, and what the CSS font-family should be for different locales.
Types of changes
Adds two new translation fields to allow language translation to specify a default font.
The first field is
The second field is
This includes the variants because certain fonts may not support italics, for example Noto Sans JP.
The second field could also be used to specify a default system font.
How to Test
Confirm the Editor default text is using the Noto Serif font.
You can obviously test using a different locale and font to match what works best for your language.
Tested and confirmed that I was able to change the editor font using localization tools.
If this becomes a more common thing, we may want to look at making localized CSS part of the build process, but for now this should solve the current issues with minimal overhead.
Nov 19, 2018
1 check passed
Core ticket: https://core.trac.wordpress.org/ticket/45382#ticket