Font hinting lost on chrome like browser
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
Bionic |
Fix Released
|
Medium
|
Gunnar Hjalmarsson |
Bug Description
[Impact]
The file for configuring Japanese rendering with Noto fonts does not refer to the font family with sufficient precision, so it may affect rendering with other fonts unintentionally. The proposed upload fixes the issue.
[Test Case]
The real tests have been reported in comment #6 and #7 of this bug report.
To verify that the modified file is properly installed:
1. Install language-
bionic-proposed
2. Run this command:
cat /etc/fonts/
(should output the line "<string>Noto Sans CJK JP</string>")
[Regression Potential]
That config file was added specifically for rendering Japanese with Noto fonts, and the modified file has been confirmed by the original author. Hence the regression risk should be low.
[Original description]
Since Ubuntu 18.04 (maybe from 17.10, I don't remember now), Chrome browsers are horrible to use. Font hintings are not working as expected. There were always some hairy things above the fonts which caused me to abandon Ubuntu. Unfortunately, this bug affected all other Ubuntu derivatives as well. I was forced to use Debian and Manjaro, because nowhere in the Internet I found a solution.
I've tested Ubuntu 19.04 again. I removed all of the *.conf file in `/etc/fonts/conf.d` dir and copied Manjaro's configs. The fonts are okay. Further investigating revealed that the culprit was symlink to this file `/etc/fonts/
I opened it and found that on Line no 8, it has this
<test qual="all" name="family" compare="contains">
which should instead be
<test qual="all" name="lang" compare="contains">
since `JP` is language identifier, not family.
I manually fixed the file and all is well!
I'm attaching two screenshot of chrome browser. Inspect the "Autofill" and "Appearance" word of the chrome setting page screenshot.
I couldn't add the fixed screenshot. Here it is