severity 533189 critical
tags 533189 patch 
thanks

Hi,

This package creates configuration file in 43 which does not follow
fontconfig rule and breaks expected behavior of fontconfig and prevents
other font package to be properly configured via normal way.

/etc/fonts/conf.d/README states:

 20 through 29          font rendering options  ****
 60 through 69          generic aliases, map generic->family

Since it breaks other unrelated packages, this is critical bug.

  critical
  makes unrelated software on the system (or the whole system) break, or
  causes serious data loss, or introduces a security hole on systems where
  you install the package.

Since 60 is for latin and 65 is for nonlatin, and if you wish to ensure
this comes on the top of default nonlatin other font choices, it is
beast to put it to 64. (If Japanese want Japanese font over this, they
can use normal configuration file to override it with
~/.fonts.conf.d/*.conf .  Now we can not even do this)

First you should not install 43-wqy-zenhei-sharp.conf 44-wqy-zenhei.conf

Then install attached 25-wqy-zenhei.conf 64-wqy-zenhei.conf
Since this is san-serif font, this should not be selected with high
priority for serif fonts.  The omissions are intentional.

This is best implemented by changing debian/rules and dropping dpatch.
(Maybe with dpkg src 3.0 (quilt).

As for README.Debian, "Upstream has provided a zenity based scripts..."
but I see no zenity based scripts.  I see simple shell script only.

If I get no response, I may prepare NMU.  (I am not too comfortable
packaging this since upstream site is all in Chinese.  I can only fix
the existing package.)

Regards,

Osamu

PS: examples/zenheiset needs to be updated.

PS: I understand bitmap fonts needs to be disabled.

PPS: ja, zh_CN, zh_TW preference conflicts over Unicode han unification
should be dealt a bit more nicely.  That is something we need to discuss
with fontconfig.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- WenQuanYi Zen Hei Configure File -->
<fontconfig>
  <!-- modified by Madsen@SMTH -->
  <match target="font">
        <test qual="any" name="family">
                <string>WenQuanYi Zen Hei</string>
                <string>文泉驿正黑</string>
                <string>文泉驛正黑</string>
        </test> 
        <edit name="globaladvance"><bool>false</bool></edit>
        <edit name="spacing"><int>0</int></edit>
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
        <edit name="autohint" mode="assign"><bool>false</bool></edit>
        <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
        <edit name="rgba" mode="assign"><const>none</const></edit>
        <edit name="embeddedbitmap"><bool>false</bool></edit>
  </match>
</fontconfig>
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- WenQuanYi Zen Hei Configure File -->
<fontconfig>
        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>WenQuanYi Zen Hei</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>WenQuanYi Zen Hei Mono</family>
                </prefer>
        </alias>
</fontconfig>

Reply via email to