Date: Wed, 28 Feb 2001 13:13:32 +0100 From: Danny Pansters <danny@ricin.com> To: <darryl@osborne-ind.com> Cc: freebsd-questions@freebsd.org Subject: Re: TrueType fonts & X Message-ID: <01022813133200.97604@ricin.localnet> In-Reply-To: <000a01c0a0e4$ee5f6230$0701a8c0@darryl> References: <000a01c0a0e4$ee5f6230$0701a8c0@darryl>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
On Tuesday 27 February 2001 18:44, you wrote:
> 1. installed xfstt from ports (XFree86 seems to be 3.3.5)
> 2. installed ttmkfdir from ports
> 3. created directory /usr/X11R6/lib/X11/fonts/TrueType
> 4. ftp'd TrueType fonts from my windows box to the TrueType
> directory. 5. Changed owner on TrueType by: Chown -R root
> /usr/X11R6/lib/X11/fonts/TrueType
> 6. Changed perms to 755.
> 7. cd to /usr/X11R6/lib/X11/fonts/TrueType
> 8. ttmkfdir > fonts.dir
> 9. examined fonts.dir. permissions & ownership match other files.
> 10. started xfstt by: xfstt --daemon
> 11. xset fp+ inet/127.0.0.1:7101
> 12. xset fp+ /usr/X11R6/lib/X11/fonts/TrueType
I've done something similar in december last year, fBSD 4.2-rel,
X3.3.6, kde2.01. I'm afraid I don't remember exactly the reasons for
doing it this way (it was one of those late-night things ;-)
Here's my .xinitrc:
ricin % less .xinitrc
#!/bin/sh
# try to clean up what we can
killall xfstt >/dev/null
rm ~/.kde/*ricin*
rm -rf /tmp/*
# start true type fontserver
/usr/X11R6/bin/xfstt &
# this line is not needed (?)
#xset fp+ /usr/X11R6/lib/X11/fonts/TrueType
xset fp+ inet/127.0.0.1:7101
# what a mess
# start kde2
startkde
It's a bit messy but it works!
> I then get this error:
> xset bad font path element (#42) possible causes are:
> directory does not exist or has wrong permissions
> directory missing fonts.dir
> incorrect font server address or syntax
OK, I think what you're doing is not wrong... my guess would be you're
havng trouble because there is no Helvetica TrueType font... its
actually Microsoft's Arial. I've linked the appropriate
helveticaXYZ.ttf to arialXYZ.ttf:
ricin # ll /usr/X11R6/lib/X11/fonts/TrueType/
total 5800
-r--r--r-- 1 root wheel 151000 May 5 1999 ANTQUAB.TTF
-r--r--r-- 1 root wheel 150416 May 5 1999 ANTQUABI.TTF
-r--r--r-- 1 root wheel 149092 May 5 1999 ANTQUAI.TTF
-r--r--r-- 1 root wheel 273020 Dec 5 22:13 ARIAL.TTF
-r--r--r-- 1 root wheel 284560 Dec 5 22:14 ARIALBD.TTF
-r--r--r-- 1 root wheel 221756 Dec 5 22:14 ARIALBI.TTF
-r--r--r-- 1 root wheel 200684 Dec 5 22:14 ARIALI.TTF
-r--r--r-- 1 root wheel 155528 May 5 1999 BKANT.TTF
-r--r--r-- 1 root wheel 297660 May 5 1999 COUR.TTF
-r--r--r-- 1 root wheel 306688 May 5 1999 COURBD.TTF
-r--r--r-- 1 root wheel 228796 May 5 1999 COURBI.TTF
-r--r--r-- 1 root wheel 238088 May 5 1999 COURI.TTF
-r--r--r-- 1 root wheel 142964 Oct 11 23:48 Georgia.TTF
-r--r--r-- 1 root wheel 139584 Oct 11 23:48 Georgiab.TTF
-r--r--r-- 1 root wheel 156668 Oct 11 23:48 Georgiai.TTF
-r--r--r-- 1 root wheel 158796 Oct 11 23:48 Georgiaz.TTF
lrwxr-xr-x 1 root wheel 9 Dec 5 22:37 HELVETICA.TTF@ ->
ARIAL.TTF
lrwxr-xr-x 1 root wheel 11 Dec 5 22:38 HELVETICABD.TTF@ ->
ARIALBD.TTF
lrwxr-xr-x 1 root wheel 11 Dec 5 22:38 HELVETICABI.TTF@ ->
ARIALBI.TTF
lrwxr-xr-x 1 root wheel 10 Dec 5 22:38 HELVETICAI.TTF@ ->
ARIALI.TTF
-r--r--r-- 1 root wheel 56560 May 5 1999 LHANDW.TTF
-r--r--r-- 1 root wheel 59636 May 5 1999 LSANSI.TTF
-r--r--r-- 1 root wheel 304932 May 5 1999 LSANSUNI.TTF
-r--r--r-- 1 root wheel 115068 May 5 1999 LUCON.TTF
-r--r--r-- 1 root wheel 69464 May 5 1999 SYMBOL.TTF
-r--r--r-- 1 root wheel 322824 May 5 1999 TIMES.TTF
-r--r--r-- 1 root wheel 326072 May 5 1999 TIMESBD.TTF
-r--r--r-- 1 root wheel 233892 May 5 1999 TIMESBI.TTF
-r--r--r-- 1 root wheel 241972 May 5 1999 TIMESI.TTF
-r--r--r-- 1 root wheel 139640 May 5 1999 VERDANA.TTF
-r--r--r-- 1 root wheel 136032 May 5 1999 VERDANAB.TTF
-r--r--r-- 1 root wheel 154264 May 5 1999 VERDANAI.TTF
-r--r--r-- 1 root wheel 153324 May 5 1999 VERDANAZ.TTF
-r--r--r-- 1 root wheel 29255 Dec 5 22:39 fonts.dir
-r--r--r-- 1 root wheel 676 Dec 5 22:39 ttinfo.dir
-r--r--r-- 1 root wheel 2319 Dec 5 22:39 ttname.dir
Then run ttmkfdir once more. It ought to work
HTH,
Danny Pansters
http://www.ricin.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01022813133200.97604>
