1Font::TTF::Post(3) User Contributed Perl Documentation Font::TTF::Post(3)
2
3
4
6 Font::TTF::Post - Holds the Postscript names for each glyph
7
9 Holds the postscript names for glyphs. Note that they are not held as
10 an array, but as indexes into two lists. The first list is the standard
11 Postscript name list defined by the TrueType standard. The second comes
12 from the font directly.
13
14 Looking up a glyph from a Postscript name or a name from a glyph number
15 is achieved through methods rather than variable lookup.
16
17 This class handles PostScript table types of 1, 2, 2.5 & 3, but not
18 version 4. Support for version 2.5 is as per Apple spec rather than
19 MS.
20
21 The way to look up Postscript names or glyphs is:
22
23 $pname = $f->{'post'}{'VAL'}[$gnum];
24 $gnum = $f->{'post'}{'STRINGS'}{$pname};
25
27 Due to different systems having different limitations, there are vari‐
28 ous class variables available to control what post table types can be
29 written.
30
31 $Font::TTF::Post::no25
32 If set tells Font::TTF::Post::out to use table type 2 instead of
33 2.5 in case apps can't handle version 2.5.
34
35 VAL Contains an array indexed by glyph number of Postscript names. This
36 is used when writing out a font.
37
38 STRINGS
39 An associative array of Postscript names mapping to the highest
40 glyph with that name. These may not be in sync with VAL.
41
42 In addition there are the standard introductory variables defined in
43 the standard:
44
45 FormatType
46 italicAngle
47 underlinePosition
48 underlineThickness
49 isFixedPitch
50 minMemType42
51 maxMemType42
52 minMemType1
53 maxMemType1
54
56 $t->read
57
58 Reads the Postscript table into memory from disk
59
60 $t->out($fh)
61
62 Writes out a new Postscript name table from memory or copies from disk
63
64 $t->XML_element($context, $depth, $key, $val)
65
66 Outputs the names as one block of XML
67
69 · No support for type 4 tables
70
72 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
73 and licensing.
74
75
76
77perl v5.8.8 2005-06-14 Font::TTF::Post(3)