https://bugzilla.redhat.com/show_bug.cgi?id=2013083

vtq <vtq-gn...@outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |needinfo?(ta...@redhat.com)



--- Comment #9 from vtq <vtq-gn...@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"


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2013083
_______________________________________________
fonts-bugs mailing list -- fonts-bugs@lists.fedoraproject.org
To unsubscribe send an email to fonts-bugs-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/fonts-bugs@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to