Font::TTF::OS_2 - the OS/2 table in a TTF font
The OS/2 table has two versions and forms, one an extension of the other. This module supports both forms and the switching between them.
No other variables than those in table and those in the standard:
Version xAvgCharWidth usWeightClass usWidthClass fsType ySubscriptXSize ySubScriptYSize ySubscriptXOffset ySubscriptYOffset ySuperscriptXSize ySuperscriptYSize ySuperscriptXOffset ySuperscriptYOffset yStrikeoutSize yStrikeoutPosition sFamilyClass bFamilyType bSerifStyle bWeight bProportion bContrast bStrokeVariation bArmStyle bLetterform bMidline bXheight ulUnicodeRange1 ulUnicodeRange2 ulUnicodeRange3 ulUnicodeRange4 achVendID fsSelection usFirstCharIndex usLastCharIndex sTypoAscender sTypoDescender sTypoLineGap usWinAscent usWinDescent ulCodePageRange1 ulCodePageRange2 xHeight CapHeight defaultChar breakChar maxLookups
Notice that versions 0, 1 & 2 of the table are supported. Notice also that the Panose variable has been broken down into its elements.
Reads in the various values from disk (see details of OS/2 table)
Writes the table to a file either from memory or by copying.
Updates the firstChar and lastChar values based on the MS table in the cmap.
firstChar
lastChar
None known
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
To install Font::TTF::Ttc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Font::TTF::Ttc
CPAN shell
perl -MCPAN -e shell install Font::TTF::Ttc
For more information on module installation, please visit the detailed CPAN module installation guide.