What does one have to do to have ISO 8859-2 fonts installed on her (or his) computer? Below, you can find a step-by-step tutorial. Please don't hesitate to email me if you have any additions, corrections and comments about it.
for FILE in *.bdf
do
bdftopcf $FILE -o `basename $FILE .bdf`.pcf
done
mkfontdir
xset +fp /usr/lib/X11/fonts/iso_8859.2/
xset fp rehash
If everything went fine, xlsfonts *-iso8859-2 should
now list all the newly installed fonts.
FontPath "/usr/lib/X11/fonts/iso_8859.2/"
We are done now. The next time we will run X Window system, X server will load the appropriate font path.
(Mark Martinec, National Supercomputer Center,
Ljubljana, <mark.martinec@nsc.ijs.si>,
Ales Casar, University of Maribor,
<casar@uni-mb.si>)
HP-UX version 9.05 (9.03 and earlier not!) has font path /usr/lib/X11/fonts/iso_8859.2/ built into the server. If you are running this version, you only have to repeat steps 1-5 above (also xlsfonts command from step 6 for testing purposes). The next time you will start X server, it will automatically find the fonts residing in /usr/lib/X11/fonts/iso_8859.2/ directory.
With this version, the /usr/lib/X11/fonts/iso_8859.2/ directory has subdirectories denoting the resolution. Therefore you have to put your fonts into /usr/lib/X11/fonts/iso_8859.2/75dpi/ (or 100dpi, if you have fonts in this resolution) subdirectory, where X server will automatically recognize them.
Another possibility is specifying additional font paths in /usr/vue/config/Xconfig:
############################################################################ # To append additional elements to the X server's font path at X startup. # NOTE: This resource causes two additional arguments -- "fp+" and this # resource's definition -- to be appended to the X server invocation string # (see the Xservers file). If any server in Xservers is unable to process # this option, this resource should not be used. # Vuelogin.fontPathTail: /usr/lib/X11/fonts/iso_8859.2
(Gorazd Bozic, Academic and Research Network of Slovenia, Ljubljana, <gorazd.bozic@arnes.si>)
############################################################################## # Add ISO 8859-2 font directory (/usr/openwin/lib/X11/fonts/iso_8859.2) # to FontPath. ############################################################################## Dtlogin.fontPathTail: /usr/openwin/lib/X11/fonts/iso_8859.2You can now force dtlogin process to reread configuration file with command /etc/init.d/dtlogin reset.
Warning: Reseting dtlogin process will terminate your current X session!
SunOS uses Sun's own proprietary X11/NeWS format (suffix .fb) instead of PCF format. In the procedure described above, replace step 3 with running convertfont, which converts BDF to the X11/NeWS format:
convertfont *.bdf
You copy the converted files onto some appropriate directory
(e.g. /usr/openwin/lib/fonts/iso_8859.2), then
instead of step 5 (mkfontdir)
run bldfamily. This command creates a file with suffix
.ff for each font family.
(Ales Kosir, University of Ljubljana, <kosir@lfdtb.fs.uni-lj.si)
You may get the following error message while executing xset command:
~> xset +fp /usr/lib/X11/fonts/iso_8859.2/ X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 51 (X_SetFontPath) Value in failed request: 0x0 Serial number of failed request: 4 Current serial number in output stream: 6 ~>The error message is not very informative and possibly misleading. It may mean that either you have mistyped the directory name, or that an old or incorrect fonts.alias file is causing the troubles. Check whether you have correctly entered the directory name, and try to rename the fonts.alias file in that directory to some other name. Sometimes, you may even get this error message if you have executed the xset command from a directory other than specified. Change to the specified directory first and try executing it again:
~> cd /usr/lib/X11/fonts/iso_8859.2/ /usr/lib/X11/fonts/iso_8859.2> xset +fp `pwd`
Created 1996-01-07 by
P. Peterlin
Last revision $Date: 2001/01/30 11:26:36 $
($Author: gnusl $)
Back to ISO 8859-2 Resources