You are not logged in.
Pages: 1
OK, I'll admit that fonts are not my area of expertise, but I have a general question maybe someone can answer.
A co-worker of mine is running Fedora Core 1, (just checked it out a few minutes ago), and the fonts in GNOME look fantastic! I usually use Fluxbox, and have been happy with the fonts there, but I've always found fonts in GNOME to be choppy and somewhat ugly.
I checked his system out, and he seems to have the same fonts I do (the Bitstream Vera set), so that wasn't it. The only thing I noticed is that he has the XFontServer service started. I'm not too familiar with this, but do you think that is what is helping his fonts to look so good? The service name is 'xfs' (XFontServer).
I checked Arch's Current list of daemons, but did not see anything listed for this.
Any advice? I read several posts with advice about fonts here (like running fc-cache -v, installing MS fonts (no way), optimizing XF86Config file, etc.), but GNOME fonts still look bad. Well, not bad, just not great.
Thanks in advance for any tips you can suggest.
Arch 0.6 - Kernel 2.6.5 - Fluxbox 0.9.8
Offline
I have tried man xfs and it is there.
I seem that all you need is add aa startup string somewhere like rc.local as suggeste by the manual.
something like
xfs -config /path/to/config
Then create a config file, try the following is from the man
#
# sample font server configuration file
#
# allow a max of 10 clients to connect to this font server
client-limit = 10
# when a font server reaches its limit, start up a new one
clone-self = on
# alternate font servers for clients to use
alternate-servers = hansen:7101,hansen:7102
# where to look for fonts
# the first is a set of Speedo outlines, the second is a set of
# misc bitmaps and the last is a set of 100dpi bitmaps
#
catalogue = /usr/X11R6/lib/X11/fonts/CID/,
/usr/X11R6/lib/X11/fonts/Speedo/,
/usr/X11R6/lib/X11/fonts/TTF,
/usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/75dpi,
/usr/X11R6/lib/X11/fonts/100dpi,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/ttf-ms-fonts,
/usr/X11R6/lib/X11/fonts/artwiz-fonts
# in 12 points, decipoints
default-point-size = 120
# 100 x 100 and 75 x 75
default-resolutions = 100,100,75,75
use-syslog = off
Let say you name it it xfs.cofn and you save it under /etc/x11
Put this in your rc.local
xfs -config /etc/x11/xfs.conf -daemon
xfs has also other starting option like the possibility to specify a user tuo run under -user, if you want I think you can use nobody (-user nobody)
Just a note correct the various path in catalogue to match your system.
As you hav arch, the one I putted should fit, but consider that I installed also the extra font.[/code]
Offline
just create a file .. /etc/rc.d/xfs, it's just to startup the daemon :
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/X11R6/bin/xfs`
case "$1" in
start)
stat_busy "Starting XFont Server"
[ -z "$PID" ] && /usr/X11R6/bin/xfs -port 7100 -daemon -droppriv -user daemon &>/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
echo $PID > /var/run/xfs.pid
add_daemon kdm
stat_done
fi
;;
stop)
stat_busy "Stopping XFont Server"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon xfs
stat_done
fi
;;
restart)
$0 stop
sleep 3
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
add it to rc.conf
and on /etc/X11/XF86Config change this -->Section "Files"
FontPath "tcp/localhost:7100"
# RgbPath "/usr/X11R6/lib/X11/rgb"
# ModulePath "/usr/X11R6/lib/modules"
# FontPath "/usr/X11R6/lib/X11/fonts/misc/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/CID/"
# FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
# FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
The finish part is to check /etc/X11/fs
Offline
jojapa wrote,
-droppriv -user daemon
-droppriv let xfs to look for xfs user and xfs group to run under, the user is overridden by -user daemon, but does it still look for xfs group??
Another note, the default location for the config file is
/usr/X11R6/lib/X11/fs/
and the filename is config, if you go there you find one ready.
But you still need to correct some path to font dir in catalogue
Offline
Thank you for the advice. I will try it out and let you know if it works.
Arch 0.6 - Kernel 2.6.5 - Fluxbox 0.9.8
Offline
I've edited the config file so that the catalogue contains all of my font directories. But every time I start X I get an error about opening the default font. XFS appears to be running fine as a daemon.
Offline
I feel real dumb!
These fonts are ... :evil:
I used the script from jojapa and the deamon is running.. But I don't have nice fonts jet!
Do I still need the configuration? And if yes, where is the configfile_link in jojapas script.
As information: I installed these ttf packages 'ttf-cheapskate' and 'ttf-ms-fonts'.
Or would it be fine if I put a line like 'FontPath "~/.Fonts" ' into XF86Config-4?? :?:
Please help me, I don't find any way.
Johannes
Offline
I don't know much about fonts, the whole fonts thing is one big mess imho. But what I understood is that the font server is more or less obsolete because freetype support went into X itself. So I think you shouldn't see a difference. It's probably more productive look at his font config files to see what secret settings make his fonts so nice...
Offline
Usefull url: http://www.rockhopper.dk/linux/software … html#chap2
Offline
Pages: 1