[Bug 972664] New: Noto Sans CJK: Chinese are using Japanese Glyphs
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 Bug ID: 972664 Summary: Noto Sans CJK: Chinese are using Japanese Glyphs Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: All Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: tiwai@suse.com Reporter: i@marguerite.su QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hi, tiwai, After https://build.opensuse.org/request/show/369270, Chinese is being displayed in Japanese Glyphs, which looked different. According to https://www.google.com/get/noto/help/cjk/, I can tell you used the "all in one CJK super otc font". There's a known problem for this. Maybe fontconfig can't match the variants by locale automatically, or we don't have a proper fontconfig file that match variants by locale, it will select JP variant by default. In other distributions like gentoo/arch linux, noto fonts are split into sub-packages by country, as what we did before. I'll try add a fontconfig file and see if any difference. Maybe in the end, we have to revert the change, some disk space cost is a must. Marguerite -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c1 --- Comment #1 from Marguerite Su --- Created attachment 670516 --> http://bugzilla.opensuse.org/attachment.cgi?id=670516&action=edit fontconfig file This fontconfig file will work -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c2
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c3
--- Comment #3 from Frederic Crozat
Thanks for reporting. I somehow naively thought this could be done automatically. In anyway, adding Frederic to Cc.
Sorry, I thought like Takashi..
Your fontconfig looks good to me. I'll check your config in Japanese locale later and try to add the entries if needed (but maybe in the next week, as we're now in Easter holidays). Once after that, we can put the fontconfig file into google-noto-fonts package itself.
Thanks ! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c4 --- Comment #4 from Marguerite Su --- As I can tell so far, fontconfig picks font in an "A-Z" order...so ja_JP locale won't need to modify anything. maybe the only rule it needs to apply is to substitute "Noto Sans CJK Sans" (some characters are half-width instead of proportional) to "Noto Sans Mono CJK Sans". And I'm preparing a fix...well 470MB + 89MB are a little huge for my bandwidth...I need them to fix the generate_specfile.sh Marguerite -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c5
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c6 Marguerite Su changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(i@marguerite.su) | --- Comment #6 from Marguerite Su --- (In reply to Takashi Iwai from comment #5)
What's the reason to give the fixed lcdfilter and rgba? Especially the latter can't be given as a fixed value in general, since this pretty much depends on the monitor you use.
I enabled lcdfilter=light because: 1. For sub-pixel rendering (I think it's almost enabled by most of the CJK users because our fonts have much more glyphs than western language, so the whole structure of the body may look ugly, sub-pixel rendering can greatly reduce this), Arch wiki said "When using subpixel rendering, you should enable the LCD filter, which is designed to reduce colour fringing" https://wiki.archlinux.org/index.php/font_configuration#LCD_filter 2. For CJK, especially Noto Sans CJK, we can only use "light" filter. actually default profile renders good, but in Chinese/Japanese we have characters whose glyphs are too close, like "OSC東京の懇親会は少し特別で", something may be missing if using default profile because it's too blur in small scale. about the rgba option, I was wrong about it, the majority of the modern monitors should use "rgb" instead of "vrgb"...
The default hintstyle is OK as long as it's tested. I assume you compared with different hintstyles, right? It had been better if this addition was mentioned in the changelog, though, as it influences on appearance a lot.
Actually I didn't test...I just see wqy-microhei-fonts has a fontconfig file that set hintstyle to hintslight, I think it could be applied on most of the CJK fonts. I'll document it in changelog when I fix the fontconfig file.
Regarding the japanese locale: yes, this works as is because of the alphabet order. But I find it's safer to add it explicitly; partly from the consistency reason and partly from the future-proof reason.
ok, if you want it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c7
--- Comment #7 from Takashi Iwai
(In reply to Takashi Iwai from comment #5)
What's the reason to give the fixed lcdfilter and rgba? Especially the latter can't be given as a fixed value in general, since this pretty much depends on the monitor you use.
I enabled lcdfilter=light because:
1. For sub-pixel rendering (I think it's almost enabled by most of the CJK users because our fonts have much more glyphs than western language, so the whole structure of the body may look ugly, sub-pixel rendering can greatly reduce this), Arch wiki said "When using subpixel rendering, you should enable the LCD filter, which is designed to reduce colour fringing" https://wiki.archlinux.org/index.php/font_configuration#LCD_filter
Yes, that's right to use lcdfilter. But it's rather a general setting when the subpixel rendering is used, so this can be regarded rather as a global flag, not specific to some font.
2. For CJK, especially Noto Sans CJK, we can only use "light" filter. actually default profile renders good, but in Chinese/Japanese we have characters whose glyphs are too close, like "OSC東京の懇親会は少し特別で", something may be missing if using default profile because it's too blur in small scale.
Hmm, but I guess this isn't specific to Noto, but in general CJK? If so, setting this shouldn't be specific to Noto. I'd suggest to remove this from the font-specific setup, but we should improve in general, if needed.
about the rgba option, I was wrong about it, the majority of the modern monitors should use "rgb" instead of "vrgb"...
OK, let's remove it, too.
The default hintstyle is OK as long as it's tested. I assume you compared with different hintstyles, right? It had been better if this addition was mentioned in the changelog, though, as it influences on appearance a lot.
Actually I didn't test...I just see wqy-microhei-fonts has a fontconfig file that set hintstyle to hintslight, I think it could be applied on most of the CJK fonts.
Right, and I thought we applied it somewhere... At least, in the earlier versions. If this was really already applied, having it in Noto's config is superfluous, and better to be removed. For example, once when the rendering by freetype is improved, we can clean it up at once if there is a single setup. Just my $0.02. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c8 --- Comment #8 from Marguerite Su --- I agree with you on all points. The only problem is that our fontconfig package has no namespace for CJK and subpixel rendering. We have only nonlatin and non-sub-pixel configs. We may have to draft new defaults for them (without affecting others). But how fontconfig knows sub-pixel is enabled (like the locale test) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c9
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=972664 http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c21 --- Comment #21 from Marguerite Su --- (In reply to Takashi Iwai from comment #20)
Marguerite, could you resubmit the fixed package with a reduced fontconfig that contains only CJK aliases, and put in 59-* ? Then we can test it on a real system, too. Thanks.
Done -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=972664
http://bugzilla.opensuse.org/show_bug.cgi?id=972664#c22
Takashi Iwai
participants (1)
-
bugzilla_noreply@novell.com