Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #1007
Difficulty: Medium
ix = ln(cos x+isin x)
True or False?
Linux & Unix Commands - Search Man Pages

font::ttf::post(3pm) [debian man page]

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

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 See Font::TTF::Font for copyright and licensing. perl v5.10.1 2009-01-21 Font::TTF::Post(3pm)

Check Out this Related Man Page

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

Font::TTF::Kern - Kerning tables DESCRIPTION
Kerning tables are held as an ordered collection of subtables each giving incremental information regarding the kerning of various pairs of glyphs. The basic structure of the kerning data structure is: $kern = $f->{'kern'}{'tables'}[$tnum]{'kerns'}{$leftnum}{$rightnum}; Due to the possible complexity of some kerning tables the above information is insufficient. Reference also needs to be made to the type of the table and the coverage field. INSTANCE VARIABLES
The instance variables for a kerning table are relatively straightforward. Version Version number of the kerning table Num Number of subtables in the kerning table tables Array of subtables in the kerning table Each subtable has a number of instance variables. kern A two level hash array containing kerning values. The indexing is left value and then right value. In the case of type 2 tables, the indexing is via left class and right class. It may seem using hashes is strange, but most tables are not type 2 and this method saves empty array values. type Stores the table type. Only type 0 and type 2 tables are specified for TrueType so far. coverage A bit field of coverage information regarding the kerning value. See the TrueType specification for details. Version Contains the version number of the table. Num Number of kerning pairs in this type 0 table. left An array indexed by glyph - left_first which returns a class number for the glyph in type 2 tables. right An array indexed by glyph - right_first which returns a class number for the glyph in type 2 tables. left_first the glyph number of the first element in the left array for type 2 tables. right_first the glyph number of the first element in the right array for type 2 tables. num_left Number of left classes num_right Number of right classes METHODS
$t->read Reads the whole kerning table into structures $t->out($fh) Outputs the kerning tables to the given file $t->XML_element($context, $depth, $key, $value) Handles outputting the kern hash into XML a little more tidily BUGS
o Only supports kerning table types 0 & 2. o No real support functions to do anything with the kerning tables yet. AUTHOR
Martin Hosken See Font::TTF::Font for copyright and licensing. perl v5.10.1 2011-02-25 Font::TTF::Kern(3pm)

Featured Tech Videos