Control: severity -1 important Control: tags -1 + patch pending X-Debbugs-CC: kos...@debian.org gunna...@ubuntu.com czc...@debian.org
Hi all, I just found out that after explicitly dealt with the buggy fontconfig snippets provided by Arphic fonts (to be more specific, the one shipped by fonts-arphic-uming), using "prepend" + binding="strong" is enough to make sure that Noto CJK fonts to be the first to match under Chinese locales while preventing web browsers like Chromium and Firefox from over-aggressively picking up Noto CJK fonts. The new version of fonts- noto-cjk will be uploaded shortly. I will test this patch on Debian Stable (Debian 10). If it also applies there, I'm planning to make a stable update as well. Regards, Boyuan Yang diff --git a/debian/70-fonts-noto-cjk.conf b/debian/70-fonts-noto- cjk.conf index 3589aaf..c72aa44 100644 --- a/debian/70-fonts-noto-cjk.conf +++ b/debian/70-fonts-noto-cjk.conf @@ -32,7 +32,7 @@ <test name="family"> <string>serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Serif CJK SC</string> </edit> </match> @@ -44,7 +44,7 @@ <test name="family"> <string>serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Serif CJK TC</string> </edit> </match> @@ -56,7 +56,7 @@ <test name="family"> <string>serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Serif CJK HK</string> </edit> </match> @@ -92,7 +92,7 @@ <test name="family"> <string>sans-serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans CJK SC</string> </edit> </match> @@ -104,7 +104,7 @@ <test name="family"> <string>sans-serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans CJK TC</string> </edit> </match> @@ -116,7 +116,7 @@ <test name="family"> <string>sans-serif</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans CJK HK</string> </edit> </match> @@ -152,7 +152,7 @@ <test name="family"> <string>monospace</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans Mono CJK SC</string> </edit> </match> @@ -164,7 +164,7 @@ <test name="family"> <string>monospace</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans Mono CJK TC</string> </edit> </match> @@ -176,7 +176,7 @@ <test name="family"> <string>monospace</string> </test> - <edit name="family" mode="prepend_first"> + <edit name="family" mode="prepend" binding="strong"> <string>Noto Sans Mono CJK HK</string> </edit> </match> On Wed, 05 Sep 2018 18:53:53 +0900 "Kan-Ru Chen" <kos...@debian.org> wrote: > > On Wed, Sep 5, 2018, at 6:14 PM, ChangZhuo Chen (陳昌倬) wrote: > > On Wed, Sep 05, 2018 at 08:59:41AM +0900, Kan-Ru Chen wrote: > > > Package: fonts-noto-cjk > > > Version: 1:20170601+repack1-3 > > > Severity: normal > > > > > > Dear Maintainer, > > > > > > I think the changes made to the config is to aggressive. After this > > > change Firefox cannot use other system fonts other than Noto CJK TC > > > when my locale is set to zh_TW. > > > > Hi koster, byang, > > > > Any idea on how to fix this? > > Since I am the original reporter, you know my opinion :-) > > IMO prepend is already problematic and prepend_first should be reserved to end user config. We should revert the change and find another way to fix the original issue. If the original problem is font ordering, can we create tiered font groups and order them by config numbering? > > Kanru > >
signature.asc
Description: This is a digitally signed message part