1Font::TTF::OldCmap(3) User Contributed Perl DocumentationFont::TTF::OldCmap(3)
2
3
4
6 Font::TTF::OldCmap - Character map table
7
8 This module is deprecated
9
11 Looks after the character map. The primary structure used for handling
12 a cmap is the Font::TTF::Segarr which handles the segmented arrays of
13 format 4 tables, and in a simpler form for format 0 tables.
14
15 Due to the complexity of working with segmented arrays, most of the
16 handling of such arrays is via methods rather than via instance vari‐
17 ables.
18
19 One important feature of a format 4 table is that it always contains a
20 segment with a final address of 0xFFFF. If you are creating a table
21 from scratch this is important (although Font::TTF::Segarr can work
22 quite happily without it).
23
25 The instance variables listed here are not preceeded by a space due to
26 their emulating structural information in the font.
27
28 Num Number of subtables in this table
29
30 Tables
31 An array of subtables ([0..Num-1])
32
33 Each subtables also has its own instance variables which are, again,
34 not preceeded by a space.
35
36 Platform
37 The platform number for this subtable
38
39 Encoding
40 The encoding number for this subtable
41
42 Format
43 Gives the stored format of this subtable
44
45 Ver Gives the version (or language) information for this subtable
46
47 val This points to a Font::TTF::Segarr which contains the content of
48 the particular subtable.
49
51 $t->read
52
53 Reads the cmap into memory. Format 4 subtables read the whole subtable
54 and fill in the segmented array accordingly.
55
56 Format 2 subtables are not read at all.
57
58 $t->ms_lookup($uni)
59
60 Given a Unicode value in the MS table (Platform 3, Encoding 1) locates
61 that table and looks up the appropriate glyph number from it.
62
63 $t->find_ms
64
65 Finds the Microsoft Unicode table and sets the "mstable" instance vari‐
66 able to it if found. Returns the table it finds.
67
68 $t->out($fh)
69
70 Writes out a cmap table to a filehandle. If it has not been read, then
71 just copies from input file to output
72
73 @map = $t->reverse([$num])
74
75 Returns a reverse map of the table of given number or the Microsoft
76 cmap. I.e. given a glyph gives the Unicode value for it.
77
79 · No support for format 2 tables (MBCS)
80
82 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
83 and licensing.
84
85
86
87perl v5.8.8 2005-06-14 Font::TTF::OldCmap(3)