Comment 54 for bug 502610

Revision history for this message
In , Qianqian Fang (fangq) wrote :

(In reply to comment #37)
>
> Sorry my poor explanation. I know 65-nonlatin is not for japanese locale. it's
> different issue.
> I suggested to drop ja and ko from lang attribute in chienese fonts.
>
> For example:
>
> $ pango-view --font=sans-serif --language=en_US --markup --text='<span
> lang="ja">直骨</span>'
> $ pango-view --font=sans-serif --language=en_US --markup --text='<span
> lang="zh">直骨</span>'
>
> Even in en, fr locale, if you use 65-nonlatin.conf(id=27897) and both Chinese
> and japanese fonts are installed, Japanese text even specified as 'ja' is
> displayed by chinese fonts. Because Chinese fonts have 'ja' in lang attribute.
>

I guess you did not install the 55-language_fonts_ja-jp.conf file in the attachments, did you? I run your commands with this config file and the Japanese font comes out nicely.

The reason I ask you to install 55-language_fonts_ja-jp.conf for this case is because you are specifying lang=ja, which means this is now a lang-specific case, and this is beyond 65-nonlatin.

for the ja/ko tags in the fonts, indeed, I did not do anything when producing the fonts, probably fontforge did it automatically based on the code point coverage from the fc-lang .orth files from fontconfig. I think the lang tag in the fonts only means they have all the code points, not necessarily the right variant, just like any of the non-cjk lang tags in these fonts.