1FONTDATABASE(5) File Formats Manual FONTDATABASE(5)
2
3
4
6 FontDataBase - database of fonts accessible to t1lib.
7
9 This manual page has been written for the Debian GNU/Linux distribu‐
10 tion. It has been adapted from the documentation included in the
11 upstream t1lib distribution.
12
13 /etc/t1lib/FontDataBase is a text file which contains, minimally, the
14 basenames of Type 1 font files to be made accessible to the t1lib font
15 rasterizer library. The format is intentionally similar to that of the
16 fonts.dir and fonts.scale files used by X11.
17
18 Line 1 of this file contains a positive integer specifying the number
19 of fonts declared in that file. This is as in the fonts.dir files of
20 the X11 system.
21
22 All remaining lines contain declarations of one font each. The only
23 thing taken from such a line is the last string (delimited by white
24 space) in it. It is assumed to be a filename of the format base‐
25 name.someextension.
26
27 The basename part is assumed to be the basename(1) of a fontfile.
28 After the a string has been parsed, the extension is cut off and
29 replaced in turn with .pfa and .pfb. The initialization routine tries
30 to open a font file in its search path with one of the resulting file‐
31 names.
32
33 The remainder of the line, i.e., from beginning to the start of the
34 filename string, is completely ignored and thus may contain information
35 for other programs.
36
38 Here is a minimal font database file for 4 fonts:
39
40 4
41 isvl.afm
42 isvli.afm
43 isvd.afm
44 isvdi.afm
45
46 This file is minimal, because it contains just the information needed,
47 and nothing not needed by the library.
48
49 Here is a more realistic example, which allows an application to match
50 a fully qualified X11 fontname to a FontID in t1lib. This is also a
51 valid font database file:
52
53 4
54 Souvenir Souvenir-Light --- -itc-souvenir-light-r-normal--#-0-0-0-p-0-iso8859-1 isvl.afm
55 Souvenir Souvenir-LightItalic -*- -itc-souvenir-light-i-normal--#-0-0-0-p-0-iso8859-1 isvli.afm
56 Souvenir-Demi *-- -itc-souvenir-demi-r-normal--#-0-0-0-p-0-iso8859-1 isvd.afm
57 Souvenir-DemiItalic **- -itc-souvenir-demi-i-normal--#-0-0-0-p-0-iso8859-1 isvdi.afm
58
60 /etc/t1lib/FontDataBase
61
63 mkfontdir(1x)
64
65
66
67
68 FONTDATABASE(5)