[tor-bugs] #18297 [Tor Browser]: Tor browser uses Chinese-style glyphs to display Japanese

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 11 00:16:08 UTC 2016


#18297: Tor browser uses Chinese-style glyphs to display Japanese
-------------------------+-----------------------------------
 Reporter:  cypherpunks  |          Owner:  tbb-team
     Type:  defect       |         Status:  needs_information
 Priority:  Medium       |      Milestone:
Component:  Tor Browser  |        Version:
 Severity:  Normal       |     Resolution:
 Keywords:               |  Actual Points:
Parent ID:  #18097       |         Points:
  Sponsor:               |
-------------------------+-----------------------------------

Comment (by arthuredelstein):

 We are currently using `Noto Sans CJK SC Regular`. This font supports
 Simplified and Traditional Chinese, Japanese and Korean glyphs, and
 provides alternative "localized forms" via the opentype `locl` feature so
 that the appropriate glyph is displayed, depending on language.

 This works properly when the web page uses
 {{{
 <meta charset="UTF-8"/>
 }}}
 such as on ​https://en.wikipedia.org/wiki/Han_unification
 #Examples_of_language-dependent_glyphs

 but it fails to work properly when it uses
 {{{
 <meta http-equiv="Content-Type" content="text/html;charset=Shift_JIS" />
 }}}
 such as on http://www.aozora.gr.jp/cards/001779/files/56648_58207.html

 A solution I found to this problem is to include a separate font for each
 of SC, TC, Japanese, and Korean, namely:
 {{{
 Noto Sans JP Regular
 Noto Sans TC Regular
 Noto Sans SC Regular
 Noto Sans KR Regular
 }}}
 Doing this will add ~1 MB (zipped) to the bundle, which I think is not too
 bad. I'm working on writing patches to do this.

 (Another alternative would be to try to fix the `Shift_JIS`/`locl` bug in
 Firefox or whatever is the offending font library. I reported the bug
 here: https://bugzilla.mozilla.org/show_bug.cgi?id=1247479)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18297#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list