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

BUGS

90       None known
91

AUTHOR

93       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
94       and licensing.
95
96
97
98perl v5.16.3                      2012-05-17                Font::TTF::OS_2(3)
Impressum