Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=492510
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #336973|0 |1 is obsolete| |
--- Comment #24 from Akira TAGOH tagoh@redhat.com 2009-04-17 02:55:00 EDT --- Created an attachment (id=339961) --> (https://bugzilla.redhat.com/attachment.cgi?id=339961) proposed fontconfig config
I've polished a lot from my previous proposal. it won't depends on other fonts. just works for the desired situation. this should be valid for current our policy as well.
I've tested it on rawhide and it works as expected.
1. LANG=ja_JP.UTF-8 pango-view --text "日本語 test" --font "Sans 100"
--> rendering is ok with Japanese font
2. LANG=ja_JP.UTF-8 pango-view --text "日本語 test" --font "Sans 12"
--> rendering is ok with Japanese font
3. LANG=zh_CN.UTF-8 pango-view --text "日本語 test" --font "Sans 100"
--> rendering is ok with Chinese outlined font
4. LANG=zh_CN.UTF-8 pango-view --text "日本語 test" --font "Sans 12"
--> WenQuanYi Bitmap Song is used to render 日本語
5. LANG=zh_CN.UTF-8 pango-view --markup --text '<span lang="ja">日本語</span> test' --font "Sans 100"
--> rendering is ok with Japanese font
6. LANG=zh_CN.UTF-8 pango-view --markup --text '<span lang="ja">日本語</span> test' --font "Sans 12"
--> rendering is ok with Japanese font
7. LANG=en_US.UTF-8 pango-view --text "日本語 test" --font "Sans 100"
--> rendering all is ok with outlined font
8. (bonus)PANGO_LANGUAGE=zh LANG=en_US.UTF-8 pango-view --text "日本語 test" --font "Sans 12"
--> WenQuanYi Bitmap Song is used to render 日本語
Which fonts are used on English locale to display non-latin characters really depends on lang tag or PANGO_LANGUAGE. so case 8 is to confirm it, but anyway.