postmarketos-base-ui-plasma: get rid of font-droid-nonlatin
Describe your issue
When you install extra Noto fonts (for instance, font-noto-cjk
), these fonts are expected to have preference over fallback fonts. On Plasma Mobile, however, font-droid-nonlatin
's fallback fonts are used instead (for Chinese, Japanese and Korean text in this case).
In postmarketOS, only Plasma-based UIs use Droid fallback fonts. While we can fix this issue without dropping Droid by tuning fontconfig files, it seems easier to get rid of Droid fonts and use Noto fonts instead in my opinion.
What's the expected behaviour?
Extra fonts are used to render text instead of fallback fonts.
What's the current behaviour?
Fallback fonts are used even if extra fonts provide glyphs for certain text.
How to reproduce your issue?
- Boot Plasma Mobile and take a screenshot of https://ja.wikipedia.org using Angelfish,
- Launch
pmbootstrap init
and addfont-noto-cjk,font-noto-cjk-extra
toExtra packages [none]:
, - Boot with the rootfs as a result of step 2,
- Take a screenshot of https://ja.wikipedia.org using Angelfish and compare with step 1,
- If the text's glyphs are the same, fallback fonts are used even with Noto CJK fonts installed.
What device are you using?
pine64-pinephone (revision 1.2a)
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
I have confirmed that the reproduce procedure makes differences between screenshots if Phosh is used instead.