FS#63205 - [ttf-droid] CJK text appears like boxes

Attached to Project: Community Packages
Opened by tgn-ff (tgn-ff) - Monday, 15 July 2019, 21:19 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jerome Leclanche (Adys)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

STR:
0) Make sure you have installed the latest (20121017-7) version of the ttf-droid package.
1) Visit https://zh.wikipedia.org/wiki/%E6%B1%89%E8%AF%AD
2) Observe the text in the window manager's titlebar.

The chinese text appears like boxes in the titlebar with the latest version, but correctly with the previous one (20121017-6).
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:00 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/ttf-droid/issues/1
Comment by Chris Down (cdown) - Wednesday, 17 July 2019, 12:29 GMT
I also reproduce this. Looking at the changes (https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/ttf-droid&id=4527049352b70758a60847d10393e31b9ef40d81), since the actual font didn't change it looks like it's one of the following:

1. A config reordering change, but it would have to be due to the alphabetic part, since the numbers stayed the same
2. A result of removing one of the dependencies
3. Something to do with installing in `/usr/share/fonts/droid` instead of `/usr/share/fonts/TTF`
4. Something to do with using symlinks instead of copying the files

I'll keep on investigating.
Comment by Chris Down (cdown) - Thursday, 18 July 2019, 11:29 GMT
Looking at `pacman -Qql ttf-droid` before and after makes another change more clear: before, we didn't symlink the configs in conf.d so they would actually be used. Now we set up the symlinks, and they have things like this:

<match target="scan">
<test name="lang" compare="eq">
<string>zh-cn</string>
</test>
<test name="lang" compare="eq">
<string>zh-sg</string>
</test>
<test name="lang" compare="eq">
<string>zh-hk</string>
</test>
<test name="lang" compare="eq">
<string>zh-tw</string>
</test>
<test name="lang" compare="eq">
<string>zh</string>
</test>
<test name="fullname">
<string>Droid Sans Japanese</string>
</test>
<edit name="family">
<string>Droid Sans</string>
</edit>
<edit name="fullname">
<string>Droid Sans</string>
</edit>
<edit name="fontversion">
<int>1</int>
</edit>
</match>

My guess is that some of these (there are a lot) eventually result in promoting a font without CJK glyphs incorrectly. Indeed, if I do the following then glyphs display correctly again even on pkgrel 7:

rm /etc/fonts/conf.d/*droid*
Comment by Chris Down (cdown) - Thursday, 18 July 2019, 11:33 GMT
For now, here's my workaround (with linking to hopefully create pacnew files on upgrade instead of just removing them): https://github.com/cdown/ansible-desktop/commit/34891e79dee46d2562d97ef5723ea2dba09ec622
Comment by mattia (nTia89) - Sunday, 19 September 2021, 08:42 GMT
I cannot reproduce the issue (ttf-droid-20121017-10).
Is it still valid?
Comment by tgn-ff (tgn-ff) - Monday, 20 September 2021, 03:01 GMT
Still there, on my end.
Comment by Toolybird (Toolybird) - Thursday, 27 April 2023, 06:53 GMT
Is this still an issue with latest pkgs?
Comment by tgn-ff (tgn-ff) - Thursday, 27 April 2023, 18:07 GMT
Yes, still here.
Comment by mattia (nTia89) - Thursday, 27 April 2023, 18:15 GMT
@tgn-ff, if you downgrade to latest known working release (-6) are you still able to to fix it?
Comment by tgn-ff (tgn-ff) - Thursday, 27 April 2023, 19:00 GMT
Yes, more or less. There are still some missing glyphs - not sure if they were missing when I reported the issue. The best workaround, if one wants to use the font, is in cdown's comment above.
Comment by mattia (nTia89) - Thursday, 27 April 2023, 19:22 GMT
Are you sure is your browser using `Droid` in that page?
Comment by tgn-ff (tgn-ff) - Thursday, 27 April 2023, 19:27 GMT
I made sure to remove other fonts providing CJK support beforehand. Also, this doesn't affect the browser, but rather the titlebar of the window manager, kwin in my case.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...