1Font::TTF::Post(3)    User Contributed Perl Documentation   Font::TTF::Post(3)
2
3
4

NAME

6       Font::TTF::Post - Holds the Postscript names for each glyph
7

DESCRIPTION

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

INSTANCE VARIABLES

27       Due to different systems having different limitations, there are
28       various class variables available to control what post table types can
29       be 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 cannot 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

METHODS

56   $t->read
57       Reads the Postscript table into memory from disk
58
59   $t->out($fh)
60       Writes out a new Postscript name table from memory or copies from disk
61
62   $t->XML_element($context, $depth, $key, $val)
63       Outputs the names as one block of XML
64
65   $t->minsize()
66       Returns the minimum size this table can be. If it is smaller than this,
67       then the table must be bad and should be deleted or whatever.
68

BUGS

70       ยท   No support for type 4 tables
71

AUTHOR

73       Martin Hosken <http://scripts.sil.org/FontUtils>.
74

LICENSING

76       Copyright (c) 1998-2016, SIL International (http://www.sil.org)
77
78       This module is released under the terms of the Artistic License 2.0.
79       For details, see the full text of the license in the file LICENSE.
80
81
82
83perl v5.30.1                      2020-01-30                Font::TTF::Post(3)
Impressum