fsadmin -e
There's a file /usr/openwin/lib/X11/fontserver.cfg, and the content is the same as that of the dragon.
Compare with the fontpath in /usr/openwin/server/etc/OWconfig. There is a different, even in standard paths. So, update it.
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
Copy Chinese Fonts From Linux To Solaris
mv zhfont /shared/local/lib/X11/fonts/
cd /shared/local/lib/X11/fonts/ chown -R root:bin zhfont/ chmod -R g-w,o+r !$
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!?
/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
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!
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.
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.
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.
Getting Started
Viewing Fonts
Making Fonts Available
Font Administrator Messages
Font Administrator Utilities
Asian Font Sets
For Solaris 2.6.
/usr/dt/bin/sdtfontadm &
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.
Modifying the font path may include the following subtasks:
To List the Font Path
To Reorder the Font Path
To Delete Font Path Elements
To Add Font Path Elements