TWM: truetype support

Eeri Kask Eeri.Kask at inf.tu-dresden.de
Thu Nov 8 05:11:35 PST 2007


Mike Russo wrote:
> Hey dude - thanks for spending some time on twm and making it look
> good. Any chance you might upload a gzipped Linux/x86 binary?  :)


Hey I have a better idea.  You have wget, gcc and X11 headers installed?

(1) Then run this script:

--------8<--------
#!/bin/sh

mkdir twm.tweaked
cd twm.tweaked

wget http://xorg.freedesktop.org/archive/individual/app/twm-1.0.3.tar.gz
wget http://www.inf.tu-dresden.de/~ek1/twm-1.0.3-diff1-7.tar

tar -xzf twm-1.0.3.tar.gz
tar -xf  twm-1.0.3-diff1-7.tar

cd twm-1.0.3
LDFLAGS=-lXft \
CFLAGS="-O2 -DTWM_USE_OPACITY -DTWM_USE_XFT -I/usr/include/freetype2" \
./configure  --prefix=/usr/local

cd src
tar -xzf ../../twm-1.0.3-diff1.MyFont_ChangeGC.tgz
tar -xzf ../../twm-1.0.3-diff2.TWM_USE_XFT.tgz
tar -xzf ../../twm-1.0.3-diff3.Spacing.tgz
tar -xzf ../../twm-1.0.3-diff4.TWM_USE_OPACITY.tgz
tar -xzf ../../twm-1.0.3-diff5.Fixes.tgz
tar -xzf ../../twm-1.0.3-diff6.Improvements.tgz
tar -xzf ../../twm-1.0.3-diff7.Appearance.tgz
./Apply_diff1.sh
./Apply_diff2.sh
./Apply_diff3.sh
./Apply_diff4.sh
./Apply_diff5.sh
./Apply_diff6.sh
./Apply_diff7.sh

make

cp twm ../../
cd ../../
rm -rf twm-1.0.3
rm twm-1.0.3-diff[1-7].*.tgz

--------8<--------


... and you'll have twm with XFT Linux/x86 binary in twm.tweaked/.


(2) xcompmgr is at
http://xapps.freedesktop.org/release/xcompmgr-1.1.3.tar.gz


(3) put

Section "Extensions"
  Option "RENDER" "Enable"
  Option "Composite" "Enable"
  Option "DAMAGE" "Enable"
  Option "XFIXES" "Enable"
EndSection

into xorg.conf,


(4) run "xcompmgr -c -o 0.5 -r 6 -t -6 -l -9 &" prior to "exec twm" in
.xinitrc.

That's it.  :-)


Greetings,

    Eeri Kask



More information about the xorg mailing list