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
19       identification. Thus the general direction is from identification to
20       glyph and not the other way around (at least not without knowledge of
21       the particular 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       Opens and reads the given filename as a TrueType Collection. Reading a
41       collection involves reading each of the directories which go to make up
42       the collection.
43
44   $c->read
45       Reads a Collection by reading all the directories in the collection
46
47   $c->find($direct, $name, $check, $off, $len)
48       Hunts around to see if a table with the given characteristics of name,
49       checksum, offset and length has been associated with a directory
50       earlier in the list.  Actually on checks the offset since no two tables
51       can share the same offset in a TrueType font, collection or otherwise.
52
53   $c->DESTROY
54       Closees any opened files by us
55

BUGS

57       No known bugs, but then not ever executed!
58

AUTHOR

60       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
61       and licensing.
62
63
64
65perl v5.16.3                      2011-10-13                 Font::TTF::Ttc(3)
Impressum