Re: ttf do I realy need to re-boot every time ?
On Thursday 13 March 2003 03:08, Cameron Hutchison wrote:
> Once upon a time dave selby said...
>
> > Every time i add *.ttf fonts to /usr/share/fonts/truetype/, I xfstt
> > force-reload, it counts the correct number including the new ones,
> > HOWEVER xlsfonts | grep ttf, and gimp only see the old ones till I do a
> > complete re-boot.
>
> Run the command "xset fp rehash" - this forces the X server to re-read
> its font database.
I gave it a go ...
debian:/home/testbed# /etc/init.d/xfstt force-reload
Reloading X True Type Font Server configuration...Stopping X TrueType Font
Server: xfstt.
xfstt: sync in directory "/usr/share/fonts/truetype/."
Found 5 fonts.
Starting X TrueType Font Server: xfstt.
I added a new font ... making it 6 fonts
debian:/home/testbed# /etc/init.d/xfstt force-reload
Reloading X True Type Font Server configuration...Stopping X TrueType Font
Server: xfstt not running.
xfstt: sync in directory "/usr/share/fonts/truetype/."
Found 6 fonts.
Starting X TrueType Font Server: xfstt.
AOK so far, tried xset fp rehash in root, no go ...
debian:/home/testbed# xset fp rehash
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xset: unable to open display ":0.0"
debian:/home/testbed#
so tried it as logged in user ..
testbed@debian:~$ xlsfonts | grep ttf
-ttf-aarcover-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
-ttf-actionis-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
-ttf-cairo-medium-r-normal-medium-0-0-0-0-p-0-iso8859-1
-ttf-celticmd-bold-r-normal-decorative w drop caps-0-0-0-0-p-0-iso8859-1
-ttf-drifttype-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
testbed@debian:~$ xset fp rehash
testbed@debian:~$ xlsfonts | grep ttf
-ttf-aarcover-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
-ttf-actionis-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
-ttf-cairo-medium-r-normal-medium-0-0-0-0-p-0-iso8859-1
-ttf-celticmd-bold-r-normal-decorative w drop caps-0-0-0-0-p-0-iso8859-1
-ttf-drifttype-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1
testbed@debian:~$
5 fonts before the command, still 5 after ??
Am I doing this correctly ?
Dave
Reply to: