[Debian-zh-dev] Bug#907048: fonts-noto-cjk: Consider increasing noto cjk font priority on Chinese systems

Boyuan Yang 073plan at gmail.com
Thu Aug 23 13:56:02 BST 2018


Package: fonts-noto-cjk
Severity: normal
X-Debbugs-CC: chinese-developers at lists.alioth.debian.org czchen at debian.org
Tags: patch l10n

Dear Fonts Team, Chinese developers and czchen,

As previously discussed on the Chinese list, we want to make Noto CJK fonts 
the "default" one on all Chinese environments, or at least on those Chinese 
locales that are supported by Noto CJK fonts [1].As a result, I'm proposing to 
tweak its fontconfig config files to achieve that.

This would also workaround some weird results on fontconfig's font selecting, 
e.g., on installing fonts-arphic-gkai00mp (which is rather legacy these days), 
fontconfig on zh_CN systems would receive a (weirdly) high priority for all 
sans, sans-serif, serif and monospace fonts.

diff --git a/70-fonts-noto-cjk.conf b/70-fonts-noto-cjk.conf
index c1052bb..a97c7e7 100644
--- a/70-fonts-noto-cjk.conf
+++ b/70-fonts-noto-cjk.conf
@@ -32,7 +32,7 @@
         <test name="family">
             <string>serif</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Serif CJK SC</string>
         </edit>
     </match>
@@ -44,7 +44,7 @@
         <test name="family">
             <string>serif</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Serif CJK TC</string>
         </edit>
     </match>
@@ -80,7 +80,7 @@
         <test name="family">
             <string>sans-serif</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Sans CJK SC</string>
         </edit>
     </match>
@@ -92,7 +92,7 @@
         <test name="family">
             <string>sans-serif</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Sans CJK TC</string>
         </edit>
     </match>
@@ -128,7 +128,7 @@
         <test name="family">
             <string>monospace</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Sans Mono CJK SC</string>
         </edit>
     </match>
@@ -140,7 +140,7 @@
         <test name="family">
             <string>monospace</string>
         </test>
-        <edit name="family" mode="prepend">
+        <edit name="family" mode="prepend_first">
             <string>Noto Sans Mono CJK TC</string>
         </edit>
     </match>


[1] https://lists.debian.org/debian-chinese-gb/2017/05/msg00000.html

--
Regards,
Boyuan Yang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/chinese-developers/attachments/20180823/4d8e8c20/attachment.sig>


More information about the Chinese-developers mailing list