1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/chinese/cmexfonts/pkg-install
Clive Lin d739331a67 This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System
(PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the
Internet that is DFSG-compliant.

The font was designed by DynaLab and released by CMEX as part of the
proposed Big5+ standard documentation. It was then converted to HBF and BDF
format and further modified by Wei-Lun Chao in September 1998.

Submitted by: statue@freebsd.sinica.edu.tw
Handed to me via: keichii
2001-07-30 05:52:39 +00:00

29 lines
771 B
Bash

#!/bin/sh
set -e
fontdir="/usr/X11R6/lib/X11/fonts/local"
# Add FontPath to /etc/X11/XF86Config
if [ -f /etc/X11/XF86Config ]
then
if ! grep -q "^ *FontPath *[\"']$fontdir/" /etc/X11/XF86Config
then
echo "Adding FontPath \"$fontdir\" to /etc/X11/XF86Config ..."
tmpfile="/tmp/tempfile"
sed -e '/Section "Files"/,/EndSection/{
/EndSection/i\
FontPath \"'$fontdir'/:unscaled\"\
FontPath \"'$fontdir'/\"
}' /etc/X11/XF86Config >> $tmpfile
mv -f $tmpfile /etc/X11/XF86Config
else
echo "Having FontPath \"$fontdir\" to /etc/X11/XF86Config ..."
fi
else
echo "/etc/X11/XF86Config not found!"
echo "You need to add"
echo " FontPath \"$fontdir/:unscaled\""
echo "to /etc/X11/XF86Config yourself in order to use the font."
fi