Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
Font::TTF::Segarr - Segmented array DESCRIPTION
Holds data either directly or indirectly as a series of arrays. This class looks after the set of arrays and masks the individual sub- arrays, thus saving a class, we hope. INSTANCE VARIABLES
All instance variables do not start with a space. The segmented array is simply an array of segments Each segment is a more complex affair: START In terms of the array, the address for the 0th element in this segment. LEN Number of elements in this segment VAL The array which contains the elements METHODS
Font::TTF::Segarr->new($size) Creates a new segmented array with a given data size $s->fastadd_segment($start, $is_sparse, @dat) Creates a new segment and adds it to the array assuming no overlap between the new segment and any others in the array. $is_sparse indicates whether the passed in array contains "undef"s or not. If false no checking is done (which is faster, but riskier). If equal to 2 then 0 is considered undef as well. Returns the number of segments inserted. $s->add_segment($start, $overwrite, @dat) Creates a new segment and adds it to the array allowing for possible overlaps between the new segment and the existing ones. In the case of overlaps, elements from the new segment are deleted unless $overwrite is set in which case the elements already there are over-written. This method also checks the data coming in to see if it is sparse (i.e. contains undef values). Gaps cause new segments to be created or not to over-write existing values. $s->tidy Merges any immediately adjacent segments $s->at($addr, [$len]) Looks up the data held at the given address by locating the appropriate segment etc. If $len > 1 then returns an array of values, spaces being filled with undef. $s->remove($addr, [$len]) Removes the item or items from addr returning them as an array or the first value in a scalar context. This is very like "at", including padding with undef, but it deletes stuff as it goes. $s->copy Deep copies this array $s->copy_seg($seg) Creates a deep copy of a segment BUGS
No known bugs. AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.16.3 2011-10-13 Font::TTF::Segarr(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