FS#71913 - noto-fonts-cjk fontconfig zh-hk serif pattern typo
Attached to Project:
Arch Linux
Opened by T2hhbmEK (T2hhbmEK) - Tuesday, 24 August 2021, 17:56 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 31 August 2021, 12:49 GMT
Opened by T2hhbmEK (T2hhbmEK) - Tuesday, 24 August 2021, 17:56 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 31 August 2021, 12:49 GMT
|
Details
Description:
Typo in 70-noto-cjk.conf i think. "Noto Serif CJK HK" should be "Noto Serif CJK TC". For "Noto Sans CJK", we have "Noto Sans CJK HK" and "Noto Sans CJK TC" for zh-hk and zh-tw. However, for "Noto Serif CJK", we only have one Traditional Chinese font. That font name is "Noto Serif CJK TC". There's no "Noto Serif CJK HK". When it comes to serif, it should fallback to "zh-tw" for "zh-hk". Pls use "Noto Serif CJK TC" for both "zh-hk" and "zh-tw" lang. Additional info: * package version(s): noto-fonts-cjk 20201206-2 Steps to reproduce: * `$ LANG=zh_HK.UTF-8 fc-match sans` returns "Noto Sans CJK HK" * `$ LANG=zh_HK.UTF-8 fc-match serif` returns the other font instead of "Noto Serif CJK HK" |
This task depends upon
Closed by Antonio Rojas (arojas)
Tuesday, 31 August 2021, 12:49 GMT
Reason for closing: Fixed
Additional comments about closing: noto-fonts-cjk 20201206-3
Tuesday, 31 August 2021, 12:49 GMT
Reason for closing: Fixed
Additional comments about closing: noto-fonts-cjk 20201206-3
<match target="pattern">
<test name="lang">
<string>zh-hk</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Noto Serif CJK TC</string>
</edit>
</match>
```
Just found that it won't work without setting binding to "same" or "strong".
Can't explain why. It works well for zh-tw/zh-cn without same/strong binding.
It might behaves the same with setting "Noto Serif CJK HK".
For ja & ko, they omit the binding option.
However, they did not change "Noto Serif CJK HK" to "Noto Serif CJK TC".