Solarisのフォントサーバで日本語フォントを利用する方法

備忘録としてSolaris上のフォントサーバで日本語フォントを利用する方法を記述します。
確かSolaris 8、9、10で確認した記憶が有ります。(Solaris 10は怪しいかも…)

  • フォントサーバ定義を修正
vi /usr/openwin/lib/X11/fontserver.cfg
  • catalogue変数に4つの日本語フォントを追加(ここの欄は1行で記述します)
# font server configuration file
# $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $

clone-self = on
use-syslog = off
catalogue = /usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Type1/sun/,/usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/,/usr/openwin/lib/X11/fonts/TrueType,/usr/openwin/lib/locale/ja/X11/fonts/75dpi/,/usr/openwin/lib/locale/ja/X11/fonts/TT/,/usr/openwin/lib/locale/ja/X11/fonts/TTbitmaps/,/usr/openwin/lib/locale/ja/X11/fonts/UTF8/

# in decipoints
default-point-size = 120
default-resolutions = 75,75,100,100
  • フォントサーバを再起動する
root@sparc01 # ps -aef | grep xfs
  nobody   648   206   0  11月 21 ?           0:24 /usr/openwin/bin/xfs
    root  8132  8113   0 18:02:35 pts/1       0:00 grep xfs
root@sparc01 # kill -HUP 648
  • Cygwinなどからフォントサーバを指しながらログインする(-fpオプションのところ)
X :1 -screen 0 1024x768x256 -query sparc01 -from mypc -nodecoration -lesspointer -fp tcp/sparc01:7100 &

これを応用するとログイン先がHP-UXAIXの場合でもフォントサーバのみSolarisを指定することで日本語が表示されるようになります。最近のLinuxX Window SystemX.org X11R7.x自体で綺麗なフォントが出力されるようなのでフォントサーバが不要になったみたいですね。(未確認です…)