Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 8f509e65feed3f0b0d8321b3b957310b > files > 3

fonts-ttf-chinese-1.3.0-1mdk.src.rpm

#!/bin/sh

# gs-cjk uses TTF fonts to print CJK files. 
# We register the fonts to ghostscript 6.51.
#
# 2001-07-27 dxiaoming@mandrakesoft.com
# 2002-12-23 pablo@mandrakesoft.com -- added MSungGBK-Light
# 2004-10-01 pablo@mandrakesoft.com -- added GBZenKai-Medium
# 2005-01-07 pablo@mandrakesoft.com -- removed GBSong-Medium

if [ -x /usr/share/ghostscript/Resource/alias-ag14.sh ]; then
    cd /usr/share/ghostscript/Resource
    ./alias-ag14.sh install GBKai-Medium=gkai00mp.ttf
	# those are the real names reported by the ttf files
    ./alias-ag14.sh install GBZenKai-Medium=GBKai-Medium
    # MSung-Light and MKai-Medium are the font names used by qt/kde.
    ./alias-ag14.sh install MKai-Medium=GBKai-Medium
fi