[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#944374: buster-pu: package fonts-noto-cjk/1:20170601+repack1-3+deb10u1



Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-CC: debian-fonts@lists.debian.org

Dear Release Team,

A solution for https://bugs.debian.org/907999 was recently found and the fix
has been tested and pushed onto Sid. Since this bug also affects Stable, it
would be better to have it fixed through a stable-pu as well.

The bug lies in a Debian-provided fontconfig file (70-fonts-noto-cjk.conf) and
the old version was using the "prepend_first" attribute to adjust the font
priority under Chinese-locale systems, which turns out to be buggy and made
font rendering to be ignoring font fallback info in CSS files and forcefully
using Noto CJK fonts under certain scenarios in web browsers like Firefox and
Chromium. This proposed patch would solve this bug.

Please review the fix and let me know if there's any question.

The full debdiff is provided as attachment.

-- 
Regards,
Boyuan Yang
diff -Nru fonts-noto-cjk-20170601+repack1/debian/70-fonts-noto-cjk.conf fonts-noto-cjk-20170601+repack1/debian/70-fonts-noto-cjk.conf
--- fonts-noto-cjk-20170601+repack1/debian/70-fonts-noto-cjk.conf	2018-08-28 09:44:11.000000000 -0400
+++ fonts-noto-cjk-20170601+repack1/debian/70-fonts-noto-cjk.conf	2019-11-08 13:10:08.000000000 -0500
@@ -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>
@@ -80,7 +80,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>
@@ -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 TC</string>
         </edit>
     </match>
@@ -128,7 +128,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>
@@ -140,7 +140,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>
diff -Nru fonts-noto-cjk-20170601+repack1/debian/changelog fonts-noto-cjk-20170601+repack1/debian/changelog
--- fonts-noto-cjk-20170601+repack1/debian/changelog	2018-08-28 09:50:21.000000000 -0400
+++ fonts-noto-cjk-20170601+repack1/debian/changelog	2019-11-08 13:10:08.000000000 -0500
@@ -1,3 +1,13 @@
+fonts-noto-cjk (1:20170601+repack1-3+deb10u1) buster; urgency=medium
+
+  * Team upload.
+  * debian/70-fonts-noto-cjk.conf: Use "prepend" instead of
+    "prepend_first". This fixes over-aggressive font selection
+    of Noto CJK fonts in modern web browsers under Chinese locale.
+    (Closes: #907999)
+
+ -- Boyuan Yang <byang@debian.org>  Fri, 08 Nov 2019 13:10:08 -0500
+
 fonts-noto-cjk (1:20170601+repack1-3) unstable; urgency=medium
 
   [ Boyuan Yang ]

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: