[haiku-bugs] [Haiku] #7961: Select the right font depending on language

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Sun, 04 Sep 2011 09:59:36 -0000

#7961: Select the right font depending on language
-----------------------------+------------------------------
 Reporter:  pulkomandy       |        Owner:  pulkomandy
     Type:  bug              |       Status:  new
 Priority:  normal           |    Milestone:  R1
Component:  Kits/Locale Kit  |      Version:  R1/Development
 Keywords:                   |   Blocked By:
 Blocking:                   |  Has a Patch:  0
 Platform:  All              |
-----------------------------+------------------------------
 See #6194.

 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.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7961>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: