justlinux.com
Sun, 27-May-2012 11:43:01 GMT

Forum: Registered Users: 76222, Online: 315
nhfs Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home Home

Help File Library: Slackware: Setting Up xfstt


Written By: :strain:

This is how I got my true type fonts working in Slack 7. Follow these steps to install xfstt on your Slack 7.0.0 Box (I hold no responsibilty for damages.. none came to my box though) .

Assumptions:
a) You are dual booting Slack 7 and Windows.

installpkg *path to contrib dir on slack7 cd*/contrib/xfstt.tgz

This installs xfstt to /usr/bin/X11/xfstt which will not be executable at boot time because it isn't in the default path before login time.

also, create /usr/share/fonts/truetype if it isn't there and copy the ttf's from your c:\windows\fonts dir like this

cp *path to C*/windows/fonts/*.ttf /usr/share/fonts/truetype/

so ...

create a file named /usr/bin/xfstt and make it user executable with the contents of this


##################################
#!/bin/bash
cd /usr/bin/X11
./xfstt --port 8000 &
################################### 

then edit /etc/rc.d/rc.local

and add this

#################################### echo "Starting Font Server..."; xfstt & #####################################

but before you reboot into your new TTF'd glory..

edit /etc/XF86Config

and add this line

FontPath "unix/:8000"

to the top of the files section.

cd /usr/bin/X11 ./xfstt --sync

Sensei's Note:

xfstt &

(Feel free to post any comments / Different methods, I had to use port 8000 because the default port didn't work correctly.)