[root@our12-test ~]# mkdir /usr/share/fonts/ttf/ copy your font file
[root@our12-test ~]# cd /usr/share/fonts/ttf/
[root@our12-test ~]# mkdir /usr/local/fonts/ttf/ copy your font file
[root@our12-test ~]# cd /usr/local/fonts/ttf/
[root@our12-test ttf]# ttmkfdir > fonts.scale
[root@our12-test ttf]# mkfontdir
[root@our12-test ttf]# chkfontpath -a /usr/share/fonts/ttf
[root@our12-test ttf]# vi /etc/X11/xfs/config or /etc/X11/fs/config
[root@our12-test ttf]# vi /etc/X11/fs/config
#
# Default font server configuration file for Red Hat Linux
#
# 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 = foo:7101,bar:7102
# where to look for fonts
#
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/Speedo,
/usr/share/fonts/default/Type1,
/usr/share/fonts/ttf,
# in 12 points, decipoints
default-point-size = 120
# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100
# use lazy loading on 16 bit (usually Asian) fonts
deferglyphs = 16
# how to log errors
use-syslog = on
# don't listen to TCP ports by default for security reasons
no-listen = tcp
[root@our12-test ttf]# chkfontpath -a /usr/share/fonts/ttf
chkfontpath: /usr/share/fonts/ttf already in list
[root@our12-test ttf]#
No comments:
Post a Comment