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

NAME

6       Font::TTF::OS_2 - the OS/2 table in a TTF font
7

DESCRIPTION

9       The OS/2 table has two versions and forms, one an extension of the
10       other. This module supports both forms and the switching between them.
11

INSTANCE VARIABLES

13       No other variables than those in table and those in the standard:
14
15           Version
16           xAvgCharWidth
17           usWeightClass
18           usWidthClass
19           fsType
20           ySubscriptXSize
21           ySubScriptYSize
22           ySubscriptXOffset
23           ySubscriptYOffset
24           ySuperscriptXSize
25           ySuperscriptYSize
26           ySuperscriptXOffset
27           ySuperscriptYOffset
28           yStrikeoutSize
29           yStrikeoutPosition
30           sFamilyClass
31           bFamilyType
32           bSerifStyle
33           bWeight
34           bProportion
35           bContrast
36           bStrokeVariation
37           bArmStyle
38           bLetterform
39           bMidline
40           bXheight
41           ulUnicodeRange1
42           ulUnicodeRange2
43           ulUnicodeRange3
44           ulUnicodeRange4
45           achVendID
46           fsSelection
47           usFirstCharIndex
48           usLastCharIndex
49           sTypoAscender
50           sTypoDescender
51           sTypoLineGap
52           usWinAscent
53           usWinDescent
54           ulCodePageRange1
55           ulCodePageRange2
56           xHeight
57           CapHeight
58           defaultChar
59           breakChar
60           maxLookups
61
62       Notice that versions 0, 1, 2 & 3 of the table are supported. Notice
63       also that the Panose variable has been broken down into its elements.
64

METHODS

66       $t->read
67
68       Reads in the various values from disk (see details of OS/2 table)
69
70       $t->out($fh)
71
72       Writes the table to a file either from memory or by copying.
73
74       $t->XML_element($context, $depth, $key, $value)
75
76       Tidies up the hex values to output them in hex
77
78       $t->XML_end($context, $tag, %attrs)
79
80       Now handle them on the way back in
81
82       $t->update
83
84       Updates the OS/2 table by getting information from other sources:
85
86       Updates the "firstChar" and "lastChar" values based on the MS table in
87       the cmap.
88
89       Updates the sTypoAscender, sTypoDescender & sTypoLineGap to be the same
90       values as Ascender, Descender and Linegap from the hhea table (assuming
91       it is dirty) and also sets usWinAscent to be the sum of Ascender+Line‐
92       gap and usWinDescent to be the negative of Descender.
93

BUGS

95       None known
96

AUTHOR

98       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
99       and licensing.
100
101
102
103perl v5.8.8                       2005-06-14                Font::TTF::OS_2(3)
Impressum