|

楼主 |
发表于 2004-9-22 15:20:14
|
显示全部楼层
i find this http://www.xfree86.org/~dawes/4.3.0/fonts4.html
4.1.3. Format of encoding directory files
In order to use a font in an encoding that the font backend does not know about, you need to have an `encodings.dir' file either in the same directory as the font file used or in a system-wide location (`/usr/X11R6/lib/X11/fonts/encodings/' by default).
The `encodings.dir' file has a similar format to `fonts.dir'. Its first line specifies the number of encodings, while every successive line has two columns, the name of the encoding, and the name of the encoding file; this can be relative to the current directory, or absolute. Every encoding name should agree with the encoding name defined in the encoding file. For example,
3
mulearabic-0 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-0.enc
mulearabic-1 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-1.enc
mulearabic-2 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-2.enc
The name of an encoding must be specified in the encoding file's `STARTENCODING' or `ALIAS' line. It is not enough to create an `encodings.dir' entry.
If your platform supports it (it probably does), encoding files may be compressed or gzipped.
The `encoding.dir' files are best maintained by the `mkfontdir' utility. Please see the mkfontdir(1) manual page for more information. |
|