Select the right font depending on language
|Reported by:||pulkomandy||Owned by:||pulkomandy|
|Blocked By:||#7816, #16087||Blocking:||#6967, #16527|
The default font in HAiku is currently DejaVu Sans, which works well for latin charset family. However, it does not include Japanese nor Chinese characters.
We have VL Gothic for Japanese and WenQuanYi Microhei for Chinese. Both of them only provide a regular style, no bold, no italics. Their latin set doesn't look very nice, either, so we'd rather not use them as the default font for everyone.
Moreover, the same character (defined by a single Unicode codepoint) needs to be rendered as different glyphs when writing Japanese or Chinese. This means a single font can't make everyone happy, and the font needs to be selected depending on the language.
This could be done in ReadOnlyBootPrompt, when selecting a locale. It should either change the default font (as seen in the font preflet), or the fallback font (currently hardcoded in app_server font rendering). We need a way to map languages to fonts, as there may be other languages displayed (eg in web pages). This would allow mixing Japanese and Chinese in the same text document.
Dano had these settings in the font preferences. But of course, no configuration at all is better.