![]() |
Russian in X Window System |
#!/bin/sh for font in `ls *.bdf` do bdftopcf $font | compress > `basename $font .bdf`.pcf.Z done rm -f *.bdf mkfontdir .mkfontdir command creates a file fonts.dir in the directory where the fonts are. Then you have to make sure X server knows where to find the fonts:
% xset fp+ directory_with_fontsSome X servers like to have a FULL path. For example:
% xset fp+ /home/serge/fonts/cyrillic/100dpiMake sure the command finished successfully. You may want to tell xset q to the server. You should see something like this:
% xset q ... ... Font Path: /usr/openwin/lib/X11/fonts/F3/,/usr/openwin/lib/X11/fonts/F3bitmaps/, /usr/openwin/lib/X11/fonts/Type1/,/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/Xt+/, /usr/dt/config/xfonts/C,/home/serge/fonts/cyrillic/100dpiTry to issue xlsfonts to see the newly installed fonts. You should see something like this:
$ xlsfonts '*koi8*' .... -cronyx-fixed-medium-r-normal--20-200-75-75-c-100-koi8-r -cronyx-fixed-medium-r-normal--24-170-100-100-c-120-koi8-r -cronyx-fixed-medium-r-semicondensed--0-0-75-75-c-0-koi8-r -cronyx-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r -cronyx-helvetica-bold-o-normal--0-0-100-100-p-0-koi8-r -cronyx-helvetica-bold-o-normal--0-0-75-75-p-0-koi8-r ....You can now use your fonts in any application through the usual X mechanism.
You mention to use the makepsres utility to create a PSres.upr file. Although I read the manual page, I did not specify the directory argument. If you don't specify the directory, it will create a PSres.upr file in de current directory for the current directory. However, the PSres.upr file will not contain the path that is used to resolve the files mentioned in the .upr file. According to the documention of the DPS system, that directory is optional. In practise, that directory is needed. Without it, adding the directory with "xset fp+" results in undefined behaviour: sometimes it works, sometimes it doesn't. With it, it works without problems, even with .pfb or without .afm.