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

ATTENTION: users of commercial X servers



Hi everybody.


Those of you who use commercial X servers might have already encountered
problem with gziped fonts supplied with Xfree86-3.3. 
The root of the problem is your server most probably can't handle gziped
font files (with .gz suffix) but it CAN handle _compressed_ font files
(with .Z suffix).

To make your server work with Xfree86-3.3 fonts you would have to 
gunzip font files, compress them, and run mkfontdir for every X fonts
directry (usually /usr/X11R6/lib/X11/fonts/* )

For those of you who need more detailed instructions, here are the ones.
(Please note that the proposed method is in no way the only possible one!)

First of all, download and install ncompress package from non-free using
your favorite way: ftp method of dselect, dftp, or just "manually"
ftp the package and install with dpkg -i.

After that place the following script into the file
/usr/local/bin/change-compress (all the following operations have to be
done as root). Make sure #!/bin/sh is the very FIRST line of this file:

---cut here--------------------------------------------------------------
#!/bin/sh
case $1 in
  --to-Z)
    BASENAME=`echo $2 | sed 's/\.gz$//'`
    gzip -d $2
    compress $BASENAME
  ;;
  --to-gz)
    BASENAME=`echo $2 | sed 's/\.Z$//'`
    uncompress $2
    gzip $BASENAME
   
  ;;
  *)
    echo "Usage: $0 [--to-Z | --to-gz ] filename"
  ;;
esac
-------------------------------------------------cut here-----------------

Make this script executable by

chmod a+x /usr/local/bin/change-compress

and provided your fonts are stored in standard Debian place, execute the
following command (execution might take a while):

(make sure to press <enter> right after this backslash)
                                                 |
                                                 /
find /usr/X11R6/lib/X11/fonts -name \*.gz -exec \
/usr/local/bin/change-compress --to-Z {} \;

After successful completion you are going to end up with *.Z files instead
of *.gz. What you still have to do is to run

mkfontdir /usr/usr/X11R6/lib/X11/fonts/*

That's it!


Hope it was at least a little helpful.

Alex Y.

-- 
   _ 
 _( )_
(     (o___           +-------------------------------------------+
 |      _ 7           |            Alexander Yukhimets            |
  \    (")            |       http://pages.nyu.edu/~aqy6633/      |
  /     \ \           +-------------------------------------------+


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: