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

NAME

6       Font::TTF::Ttc - Truetype Collection class
7

DESCRIPTION

9       A TrueType collection is a collection of TrueType fonts in one file in
10       which tables may be shared between different directories. In order to
11       support this, the TTC introduces the concept of a table being shared by
12       different TrueType fonts. This begs the question of what should happen
13       to the ' PARENT' property of a particular table. It is made to point to
14       the first directory object which refers to it. It is therefore up to
15       the application to sort out any confusion.  Confusion only occurs if
16       shared tables require access to non-shared tables.  This should not
17       happen since the shared tables are dealing with glyph information only
18       and the private tables are dealing with encoding and glyph identifica‐
19       tion. Thus the general direction is from identification to glyph and
20       not the other way around (at least not without knowledge of the partic‐
21       ular context).
22

INSTANCE VARIABLES

24       The following instance variables are preceded by a space
25
26       fname (P)
27           Filename for this TrueType Collection
28
29       INFILE (P)
30           The filehandle of this collection
31
32       The following instance variable does not start with a space
33
34       directs
35           An array of directories (Font::TTF::Font objects) for each sub-font
36           in the directory
37

METHODS

39       Font::TTF::Ttc->open($fname)
40
41       Opens and reads the given filename as a TrueType Collection. Reading a
42       collection involves reading each of the directories which go to make up
43       the collection.
44
45       $c->read
46
47       Reads a Collection by reading all the directories in the collection
48
49       $c->find($direct, $name, $check, $off, $len)
50
51       Hunts around to see if a table with the given characteristics of name,
52       checksum, offset and length has been associated with a directory ear‐
53       lier in the list.  Actually on checks the offset since no two tables
54       can share the same offset in a TrueType font, collection or otherwise.
55
56       $c->DESTROY
57
58       Closees any opened files by us
59

BUGS

61       No known bugs, but then not ever executed!
62

AUTHOR

64       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
65       and licensing.
66
67
68
69perl v5.8.8                       2005-06-14                 Font::TTF::Ttc(3)
Impressum