Debian Codegraph @

doc/sphinx/fontutils/fontlint.rst

raw
1 fontlint
2 ========
3
4 A program for checking the validity of fonts ::
5
6 fontlint fontfile1 ...
7
8 *fontlint* checks a font for certain standard problems
9
10 It will notice:
11
12 * Any glyphs with intersecting (or self-intersecting) contours.
13 * Any contours drawn in the wrong orientation
14 * Any glyphs with a flipped reference
15 * Missing points at extrema.
16
17 For sfd fonts it will also notice:
18
19 * Any open contours (more an issue in sfd files than in released fonts)
20 * Adjacent points too far apart in a glyph
21 * Unknown glyph referenced in GSUB/GPOS/MATH
22
23 For PostScript fonts it will also notice:
24
25 * More points in a glyph than allowed by PostScript.
26 * Too many hints in a glyph.
27 * Invalid glyph name.
28 * Missing BlueValues entry in PostScript Private dictionary
29 * Odd number of elements in either the BlueValues or OtherBlues entries in the
30 PostScript Private dictionary.
31 * Disordered elements in either the BlueValues or OtherBlues entries in the
32 PostScript Private dictionary.
33 * Too many elements in either the BlueValues or OtherBlues entries in the
34 PostScript Private dictionary.
35 * Elements too close in either the BlueValues or OtherBlues entries in the
36 PostScript Private dictionary (must be at least 2*BlueFuzz+1 apart).
37 * Non-integral elements in either the BlueValues or OtherBlues entries in the
38 PostScript Private dictionary.
39 * Alignment zone height in either the BlueValues or OtherBlues is too big for
40 the BlueScale in the PostScript Private dictionary.
41 * Odd number of elements in either the FamilyBlues or FamilyOtherBlues entries
42 in the PostScript Private dictionary.
43 * Disordered elements in either the FamilyBlues or FamilyOtherBlues entries in
44 the PostScript Private dictionary.
45 * Too many elements in either the FamilyBlues or FamilyOtherBlues entries in the
46 PostScript Private dictionary.
47 * Elements too close in either the FamilyBlues or FamilyOtherBlues entries in
48 the PostScript Private dictionary (must be at least 2*BlueFuzz+1 apart).
49 * Non-integral elements in either the FamilyBlues or FamilyOtherBlues entries in
50 the PostScript Private dictionary.
51 * Alignment zone height in either the FamilyBlues or FamilyOtherBlues is too big
52 for the BlueScale in the PostScript Private dictionary.
53 * Bad BlueFuzz entry in PostScript Private dictionary.
54 * Bad BlueScale entry in PostScript Private dictionary.
55 * Bad StdHW entry in PostScript Private dictionary.
56 * Bad StdVW entry in PostScript Private dictionary.
57 * Bad StemSnapH entry in PostScript Private dictionary.
58 * Bad StemSnapV entry in PostScript Private dictionary.
59 * StemSnapH does not contain StdHW value in PostScript Private dictionary.
60 * StemSnapV does not contain StdVW value in PostScript Private dictionary.
61 * Bad BlueShift entry in PostScript Private dictionary.
62 * Bad 'CFF ' table.
63
64 For TrueType fonts it will also notice:
65
66 * More points in a glyph than specified in 'maxp'
67 * More paths in a glyph than specified in 'maxp'
68 * More points in a composite glyph than specified in 'maxp'
69 * More paths in a composite glyph than specified in 'maxp'
70 * Instructions longer than allowed in 'maxp'
71 * More references in a glyph than specified in 'maxp'
72 * References nested more deeply than specified in 'maxp'
73 * Bad 'glyf' or 'loca' table
74
75 In any sfnt (True or OpenType font):
76
77 * Bad sfnt table header, bad file/table checksums, overlapping tables, standard
78 tables with incorrect lengths, etc.
79 * Bad PostScript fontname entry in the 'name' table
80 * Bad 'hhea', 'hmtx', 'vhea' or 'vmtx' table
81 * Bad 'cmap' table
82 * Bad 'EBDT', 'bdat', 'EBLC' or 'bloc' (embedded bitmap) table
83 * Bad Apple GX advanced typography table
84 * Bad OpenType advanced typography table
85 * Bad version number in OS/2 table (must be >0, and must be >1 for OT-CFF fonts)
86
87
88 See Also
89 --------
90
91 :doc:`fontforge </index>`