Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
Font::TTF::Utils - Utility functions to save fingers DESCRIPTION
Lots of useful functions to save my fingers, especially for trivial tables FUNCTIONS
The following functions are exported ($val, $pos) = TTF_Init_Fields ($str, $pos) Given a field description from the "DATA" section, creates an absolute entry in the fields associative array for the class TTF_Read_Fields($obj, $dat, $fields) Given a block of data large enough to account for all the fields in a table, processes the data block to convert to the values in the objects instance variables by name based on the list in the "DATA" block which has been run through "TTF_Init_Fields" TTF_Unpack($fmt, $dat) A TrueType types equivalent of Perls "unpack" function. Thus $fmt consists of type followed by an optional number of elements to read including *. The type may be one of: c BYTE C CHAR f FIXED F F2DOT14 l LONG L ULONG s SHORT S USHORT v Version number (FIXED) Note that "FUNIT", "FWORD" and "UFWORD" are not data types but units. Returns array of scalar (first element) depending on context $dat = TTF_Out_Fields($obj, $fields, $len) Given the fields table from "TTF_Init_Fields" writes out the instance variables from the object to the filehandle in TTF binary form. $dat = TTF_Pack($fmt, @data) The TrueType equivalent to Perl's "pack" function. See details of "TTF_Unpack" for how to work the $fmt string. ($num, $range, $select, $shift) = TTF_bininfo($num) Calculates binary search information from a number of elements TTF_word_utf8($str) Returns the UTF8 form of the 16 bit string, assumed to be in big endian order, including surrogate handling TTF_utf8_word($str) Returns the 16-bit form in big endian order of the UTF 8 string, including surrogate handling to Unicode. XML_hexdump($context, $dat) Dumps out the given data as a sequence of <data> blocks each 16 bytes wide XML_outhints Converts a binary string of hinting code into a textual representation make_circle($f, $cmap, [$dia, $sb, $opts]) Adds a dotted circle to a font. This function is very configurable. The parameters passed in are: $f Font to work with. This is required. $cmap A cmap table (not the 'val' sub-element of a cmap) to add the glyph too. Optional. $dia Optional diameter for the main circle. Defaults to 80% em $sb Side bearing. The left and right side-bearings are always the same. This value defaults to 10% em. There are various options to control all sorts of interesting aspects of the circle numDots Number of dots in the circle numPoints Number of curve points to use to create each dot uid Unicode reference to store this glyph under in the cmap. Defaults to 0x25CC pname Postscript name to give the glyph. Defaults to uni25CC. -dRadius Radius of each dot. BUGS
No known bugs AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.10.1 2009-01-29 Font::TTF::Utils(3pm)

Check Out this Related Man Page

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

NAME
Font::TTF::Ttc - Truetype Collection class DESCRIPTION
A TrueType collection is a collection of TrueType fonts in one file in which tables may be shared between different directories. In order to support this, the TTC introduces the concept of a table being shared by different TrueType fonts. This begs the question of what should happen to the ' PARENT' property of a particular table. It is made to point to the first directory object which refers to it. It is therefore up to the application to sort out any confusion. Confusion only occurs if shared tables require access to non-shared tables. This should not happen since the shared tables are dealing with glyph information only and the private tables are dealing with encoding and glyph identification. Thus the general direction is from identification to glyph and not the other way around (at least not without knowledge of the particular context). INSTANCE VARIABLES
The following instance variables are preceded by a space fname (P) Filename for this TrueType Collection INFILE (P) The filehandle of this collection The following instance variable does not start with a space directs An array of directories (Font::TTF::Font objects) for each sub-font in the directory METHODS
Font::TTF::Ttc->open($fname) Opens and reads the given filename as a TrueType Collection. Reading a collection involves reading each of the directories which go to make up the collection. $c->read Reads a Collection by reading all the directories in the collection $c->find($direct, $name, $check, $off, $len) Hunts around to see if a table with the given characteristics of name, checksum, offset and length has been associated with a directory earlier in the list. Actually on checks the offset since no two tables can share the same offset in a TrueType font, collection or otherwise. $c->DESTROY Closees any opened files by us BUGS
No known bugs, but then not ever executed! AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.10.1 2009-01-21 Font::TTF::Ttc(3pm)
Man Page