Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

font::ttf::os_2(3) [centos man page]

Font::TTF::OS_2(3)					User Contributed Perl Documentation					Font::TTF::OS_2(3)

NAME
Font::TTF::OS_2 - the OS/2 table in a TTF font DESCRIPTION
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. INSTANCE VARIABLES
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 & 3 of the table are supported. Notice also that the Panose variable has been broken down into its elements. METHODS
$t->read Reads in the various values from disk (see details of OS/2 table) $t->out($fh) Writes the table to a file either from memory or by copying. $t->XML_element($context, $depth, $key, $value) Tidies up the hex values to output them in hex $t->XML_end($context, $tag, %attrs) Now handle them on the way back in $t->update Updates the OS/2 table by getting information from other sources: Updates the "firstChar" and "lastChar" values based on the MS table in the cmap. Updates the sTypoAscender, sTypoDescender & sTypoLineGap to be the same values as Ascender, Descender and Linegap from the hhea table (assuming it is dirty) and also sets usWinAscent to be the sum of Ascender+Linegap and usWinDescent to be the negative of Descender. BUGS
None known AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.16.3 2012-05-17 Font::TTF::OS_2(3)

Check Out this Related Man Page

Font::TTF::Post(3pm)					User Contributed Perl Documentation				      Font::TTF::Post(3pm)

NAME
Font::TTF::Post - Holds the Postscript names for each glyph DESCRIPTION
Holds the postscript names for glyphs. Note that they are not held as an array, but as indexes into two lists. The first list is the standard Postscript name list defined by the TrueType standard. The second comes from the font directly. Looking up a glyph from a Postscript name or a name from a glyph number is achieved through methods rather than variable lookup. This class handles PostScript table types of 1, 2, 2.5 & 3, but not version 4. Support for version 2.5 is as per Apple spec rather than MS. The way to look up Postscript names or glyphs is: $pname = $f->{'post'}{'VAL'}[$gnum]; $gnum = $f->{'post'}{'STRINGS'}{$pname}; INSTANCE VARIABLES
Due to different systems having different limitations, there are various class variables available to control what post table types can be written. $Font::TTF::Post::no25 If set tells Font::TTF::Post::out to use table type 2 instead of 2.5 in case apps can't handle version 2.5. VAL Contains an array indexed by glyph number of Postscript names. This is used when writing out a font. STRINGS An associative array of Postscript names mapping to the highest glyph with that name. These may not be in sync with VAL. In addition there are the standard introductory variables defined in the standard: FormatType italicAngle underlinePosition underlineThickness isFixedPitch minMemType42 maxMemType42 minMemType1 maxMemType1 METHODS
$t->read Reads the Postscript table into memory from disk $t->out($fh) Writes out a new Postscript name table from memory or copies from disk $t->XML_element($context, $depth, $key, $val) Outputs the names as one block of XML BUGS
o No support for type 4 tables AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.10.1 2009-01-21 Font::TTF::Post(3pm)
Man Page