Red Hat Bugzilla – Bug 451914
use pango lang tags for language list
Last modified: 2015-01-14 18:21:31 EST
Description of problem:
gdm just using the default font rendering for languages in its language list.
This hits the font ordering issues with pango for Unihan (ie particularly for
Chinese and Japanese in this case): with current fedora font defaults Japanese
gets displayed with a Chinese glyphs in a non-ja locale.
Steps to Reproduce:
1. install rawhide
2. boot, firstboot and go to gdm lang list
3. look at rendering of ja and zh entries
3. Japanese (日本語) is rendered with Chinese font.
3. 日本語 should be in ja font
For F9 Live at least seems Japanese font was preferred somehow
but that is bad for Chinese users of course.
Created attachment 311339 [details]
Here is an untested patch.
Thanks for the patch.
I tested it and it doesn't quite seem to have an affect. I think the problem is
that normalized_language has the full locale name "ja_JP.UTF-8" but pango
only understand the lang name "ja" in its tags if I understand correctly.
Created attachment 311430 [details]
Japanese for Japanese in the Japanese font.
Oh, I was applying the tag to the tooltip...
Created attachment 311445 [details]
That works well - I also note that now the language order coincides with lang
code which is better.
Oh, thats an artifact of sorting on the markup, which now has the lang tag as
first differentiating part: