https://bugzilla.redhat.com/show_bug.cgi?id=2013083
vtq vtq-gnome@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(tagoh@redhat.com)
--- Comment #9 from vtq vtq-gnome@outlook.com --- I managed to put together some fontconfig changes like this:
--- 31-cantarell.conf.bak 2022-01-04 20:29:20.258428717 -0600 +++ 31-cantarell.conf 2022-01-04 20:29:31.553277713 -0600 @@ -26,6 +26,9 @@ <test qual="any" name="family"> <string>Cantarell</string> </test> + <test name="lang" compare="not_contains"> + <string>zh</string> + </test> <edit name="family" mode="assign" binding="weak"> <string>Cantarell</string> </edit>
This solves the issue for all my use cases. I've been using this for a while and haven't noticed any regression, and it shouldn't affect other languages in principle too.
before:
$ LANG=zh_CN.UTF-8 fc-match Cantarell -s | head -n2 NotoSansCJK-Regular.ttc: "Noto Sans CJK SC" "Regular" Cantarell-Regular.otf: "Cantarell" "Regular"
$ LANG=zh_TW.UTF-8 fc-match Cantarell -s | head -n2 NotoSansCJK-Regular.ttc: "Noto Sans CJK TC" "Regular" Cantarell-Regular.otf: "Cantarell" "Regular"
$ LANG=en_US.UTF-8 fc-match Cantarell -s | head -n2 Cantarell-Regular.otf: "Cantarell" "Regular" DejaVuSans.ttf: "DejaVu Sans" "Regular"
$ LANG=ta_IN.UTF-8 fc-match Cantarell -s | head -n2 Lohit-Tamil.ttf: "Lohit Tamil" "Regular" Cantarell-Regular.otf: "Cantarell" "Regular"
after:
$ LANG=zh_CN.UTF-8 fc-match Cantarell -s | head -n2 Cantarell-Regular.otf: "Cantarell" "Regular" NotoSansCJK-Regular.ttc: "Noto Sans CJK SC" "Regular"
$ LANG=zh_TW.UTF-8 fc-match Cantarell -s | head -n2 Cantarell-Regular.otf: "Cantarell" "Regular" NotoSansCJK-Regular.ttc: "Noto Sans CJK TC" "Regular"
$ LANG=en_US.UTF-8 fc-match Cantarell -s | head -n2 Cantarell-Regular.otf: "Cantarell" "Regular" DejaVuSans.ttf: "DejaVu Sans" "Regular"
$ LANG=ta_IN.UTF-8 fc-match Cantarell -s | head -n2 Lohit-Tamil.ttf: "Lohit Tamil" "Regular" Cantarell-Regular.otf: "Cantarell" "Regular"