lack of font scan rules
Task Info (Flyspray) | |
---|---|
Opened By | rather not to say (escape0707) |
Task ID | 80103 |
Type | Feature Request |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-10-30 05:18:23 UTC |
Status | Assigned |
Assignee | Antonio Rojas (arojas) |
Details
Description:
In other distros I've tried, they will include a fontconfig file to control the font cache scan procedure, like this: https://src.fedoraproject.org/rpms/google-noto-sans-cjk-vf-fonts/blob/rawhide/f/65-google-noto-sans-cjk-vf-fonts.conf
With this rule included, the scanned font families won't be recognized by fontconfig as they support the language that other families are designed for. Say, if I use fc-match sans:lang=ja
then Noto Sans CJK SC
won't be recognized as supports Japanese language.
But currently this Arch package lacks of this config file. This make user config harder to make. For example, I'm using Japanese locale, but I want to prefer "Noto Sans CJK SC" whenever the document/application doesn't hint a lang
attribute, so I define:
<match target="pattern">
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans CJK SC</string>
<string>Noto Color Emoji</string>
</edit>
</match>
But this won't work for my previous fc-match sans:lang=ja
example again, as Noto Sans CJK SC
will be treated as a font family that can display ja
language. Thus effectively forcing me to read SC
fonts everywhere. This won't happen in a Fedora linux system.
Additional info:
- package version(s): noto-fonts-cjk 20230817-1 (any)
- config and/or log files etc.: https://src.fedoraproject.org/rpms/google-noto-sans-cjk-vf-fonts/blob/rawhide/f/65-google-noto-sans-cjk-vf-fonts.conf
- link to upstream bug report, if any
Steps to reproduce:
Query fc-match sans:lang=ja
when setting Noto Sans CJK SC
as a weak prefer over sans-serif
.