core/wqy-zenhei/wqy-zenhei.install

30 lines
962 B
Plaintext
Raw Normal View History

2010-05-24 23:40:27 +08:00
post_install() {
echo -n "Updating font cache... "
mkfontscale /usr/share/fonts/wenquanyi/wqy-zenhei
mkfontdir /usr/share/fonts/wenquanyi/wqy-zenhei
fc-cache -f /usr/share/fonts/wenquanyi/wqy-zenhei > /dev/null
echo "done."
echo "wqy-zenhei post install message"
cat <<EOF
==> Special Note: By default, we disabled the embedded bitmaps,
so that the characters will be displayed as Anti-aliased glyphs.
For those who want to use bitmap font rendering (for 9pt-12pt),
2011-10-19 07:18:04 +08:00
you can modify the enclosed 65-wqy-zenhei.conf and change the line
2010-05-24 23:40:27 +08:00
<edit name=\"embeddedbitmap\"><bool>false</bool></edit>
to
<edit name=\"embeddedbitmap\"><bool>true</bool></edit>"
2011-10-19 07:18:04 +08:00
Remove the 65-wqy-zenhei.conf symlink from /etc/fonts/conf.d/
directory if you have problems with this package.
2010-05-24 23:40:27 +08:00
EOF
}
post_upgrade() {
post_install $1
}
post_remove() {
rm -r /usr/share/fonts/wenquanyi/wqy-zenhei
rmdir --ignore-fail-on-non-empty /usr/share/fonts/wenquanyi/
}