Add font server to iitrc 

Check 

Check 

There's a file /usr/openwin/lib/X11/fontserver.cfg, and the content is the same as that of the dragon.

Check 

Compare with the fontpath in /usr/openwin/server/etc/OWconfig. There is a different, even in standard paths. So, update it.

Steps 

fsadmin -e
$ fsadmin
fsadmin: font server is enabled to start from inetd
$ fsinfo -s iitrc:7100
name of server: iitrc:7100
version number: 2
vendor string:  X Consortium
vendor release number:  6000
maximum request size:   16384 longwords (65536 bytes)
number of catalogues:   1
        all
Number of alternate servers: 0
number of extensions:   0
FONTSERVER=tcp/iitrc:7100; export FONTSERVER
/usr/openwin/bin/fsinfo

— same as above

$ fsinfo -s tcp/iitrc:7100

— same as above, from iitrc and sunny

$ xset fp+ tcp/iitrc:7100
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

— The reason is X11R5/X11R6 conflict because the xfs is from

/opt/gnu/bin/xfs
/usr/X/bin/fs -config

Font Admin For IITRC 

Task 

Copy Chinese Fonts From Linux To Solaris

Steps 

copy to /shared/local/lib/X11/fonts/ 
mv zhfont /shared/local/lib/X11/fonts/
cd /shared/local/lib/X11/fonts/
chown -R root:bin zhfont/
chmod -R g-w,o+r !$
Save previous setting 
cdd tmp
cp /usr/openwin/server/etc/OWconfig .
xlsfonts > fonts0
xset -q
xsel -p > xfp0
cat !$

— The result of 'xset -q' can't be redirected or piped!?

add & reorder the fp 
/usr/dt/bin/sdtfontadm &

— add & reorder the fp (choose Modify Font Path from the Options menu)

The OWconfig get updated but the xset -q show the old.

$ xset fp reset
xset:  bad font path element (#40), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
"Install" the fornts using the default way 
mv zhfont zhfont-toinst

Choose Install from the Fonts menu … none of the fonts are installable under Solaris, Oh, no: the Files list is always greyed out, because the task is to choose a directory (a folder), not a file.

gzip -d *
compress *

— the fonts have to be .Z files, not .gz files.

*N*: - Fonts under console can't be recognized by Solaris, they are ended with .fnt - No .fnt under Solaris font path: ffm /usr/openwin/lib/X11/fonts/ fnt - Got 2 fonts and a big core dump!

Manually Install 
cd /shared/local/lib/X11/fonts
cp -pR zhfont-toinst/X11 zhfont

then replace all .Z with .gz in file 'fonts.dir'

*N*: - 'xset fp reset' just never works - xset fp= works fine - xlsfonts | diff -wu fonts0 - shows new fonts are added.

TrueType fonts under Solaris 

There is a directory: /usr/openwin/lib/X11/fonts/TrueType/ But it is not in the fp.

No prolem to add the pf in sdtfontadm.

Adding Chinese TTFs. NP! Just that the TTF don't have proper names under Solaris.

Check 

head /usr/openwin/server/etc/OWconfig

— get fp

xset fp= ...
xset fp rehash
xlsfonts | do_waitp
xlsfonts | grep -i song

— yes

xlsfonts | diff -wu fonts0 - | do_waitp
xlsfonts | grep -i true

— no, because TTF fonts don't have "true type" in their font names, although sdtfontadm shows so.

$ xlsfonts | diff -wu fonts0 - | grep -B 1 -- '-0-0-0-0-p-0-'
 -itc-avantgarde-book-o-normal--0-0-0-0-p-0-iso8859-1
+-itc-avantgarde-book-o-normal--0-0-0-0-p-0-iso8859-1
 -itc-avantgarde-book-r-normal--0-0-0-0-p-0-iso8859-1
+-itc-avantgarde-book-r-normal--0-0-0-0-p-0-iso8859-1
+-itc-bookman-demi-i-normal--0-0-0-0-p-0-iso8859-1
 -itc-bookman-demi-i-normal--0-0-0-0-p-0-iso8859-1

— seem it is just duplication some other scalable fonts.

Font Administrator Docus 

Urls 

Font Administrator User's Guide (Solaris 2.6) http://docs.sun.com:80/ab2/coll.47.4/FONTADMINUG/@Ab2TocView/54
Font Administrator User's Guide (Solaris 7) http://docs.sun.com:80/ab2/coll.47.8/FONTADMINUG/@Ab2TocView/123 for Solaris 7

Contents 

For Solaris 2.6.

To open Font Administrator 
/usr/dt/bin/sdtfontadm &
Add the Installation Directory to the Font Path 

When you, as the root user, install a font into a directory that is not in the default font path, Font Administrator offers to add it to the default font path for you automatically. You can also choose to add it manually via the Modify Font Path dialog.

To Modify the Font Path 

Modifying the font path may include the following subtasks: