Linux FAQ's & Manuals


cid-keyed fonts

the cid-keyed font packages work with x11 and for printing with ghostscript.

cid-keyed fonts are postscript fonts in a new format developed by adobe especially for languages which need very many glyphs, like for example asian languages.

cid-keyed fonts consist of cidfont files which contain the character descriptions (outline, hinting information) and a set of cmap (character map) files, which are used for the mapping from the cid (character id) to the character code in the desired encoding.

all the cmap files are now part of the ghostscript-cjk package on suse linux > = 8.2.10that means that you need to have the ghostscript-cjk package installed to use cid-keyed fonts.

cid-keyed fonts packages which are already distributed with suse linux are:

if you have additional cid-keyed fonts and want to install them, you just have to copy the font files into the directory /usr/share/ghostscript/resource/cidfont/ and the .afm files into the directory /usr/share/ghostscript/resource/afm/. look at one of the already available font packages for cid-keyed fonts as an example:

     mfabian@magellan:~$ rpm -qi cid-keyed-fonts-wada-20021114-71     /usr/share/doc/packages/cid-keyed-fonts-wada     /usr/share/doc/packages/cid-keyed-fonts-wada/license     /usr/share/ghostscript     /usr/share/ghostscript/resource     /usr/share/ghostscript/resource/afm     /usr/share/ghostscript/resource/afm/wadago-bold.afm     /usr/share/ghostscript/resource/afm/wadamarugo-regular.afm     /usr/share/ghostscript/resource/afm/wadamin-bold.afm     /usr/share/ghostscript/resource/afm/wadamin-regular.afm     /usr/share/ghostscript/resource/cidfont     /usr/share/ghostscript/resource/cidfont/wadago-bold     /usr/share/ghostscript/resource/cidfont/wadamarugo-regular     /usr/share/ghostscript/resource/cidfont/wadamin-bold     /usr/share/ghostscript/resource/cidfont/wadamin-regular     mfabian@magellan:~$ 

after copying the files into these directories, the fonts can be immediately used by ghostscript. as a trivial postscript file for testing you can use something like

     % -*- coding: utf-8 -*-     /wadamin-bold-unijis-utf8-h findfont 30 scalefont setfont     50 200 moveto (漢字) show showpage 

and use the name of your new cid-keyed font instead of ``wadamin-bold''.

to make the cid-keyed fonts available for use with x11 as well, call

     /usr/sbin/cidfont-x11-config 

see also its man-page: ``man cidfont-x11-config''. you may also call

     suseconfig --module fonts 

instead. among other things, this will also call /usr/sbin/cidfont-x11-config.



footnotes

... 8.2.10
on older versions of suse linux there were several packages containing cmap files: cmap-adobe-cns1, cmap-adobe-gb1, cmap-adobe-identity, cmap-adobe-japan1.rpm, cmap-adobe-japan2, and cmap-adobe-korea1
2005-03-09