Font::Scripts::AP

Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB).
Download

Font::Scripts::AP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Font::Scripts::AP Team
  • Publisher web site:
  • http://search.cpan.org/~mhosken/Font-TTF-Scripts-0.9/lib/Font/TTF/Scripts/AP.pm

Font::Scripts::AP Tags


Font::Scripts::AP Description

Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB). Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB).SYNOPSIS use Font::Scripts::AP; $ap = Font::Scripts::AP->read_font($ttf_file, $ap_file, %opts); $ap->make_classes();INSTANCE VARIABLEScmapReference to the Microsoft cmap within the font.fontReference to a font structure. read_font will cause at least the post, cmap, loca, and name tables to be read in.glyphsAn array of references to glyph data structures, indexed by glyphID. Stucture elements are:uniUnicode scalar value, if any, as specified in the APDB. (decimal integer)gnumActual glyph ID from font.postActual Postscript name from font.Note: The uni, gnum and post values are based on the UID, GID, and PSName fields of the APDB. If there are descrepancies between the APDB and the font's internal tables, then for calcuating the above three values, priority is given first to UID field, then PSName field, and finally GID.glyphReference to glyph structure read from font.lineLine number in APDB where glyph is defined.pointsA hash of references to attachment point structures for this glyph, keyed by attachment point type (aka name). Each AP structure containsnameThe name (type in TTFBuilder terminology) of the attachment pointx, yX and Y coordinates for the attachment pointlineLine number in APDB where this point is defined.componentsPresent if the glyph is a composite. Is a reference to an array of component structures. Each component structure includes:bboxcomma separated list of bounding box coordinates, i.e., x1, y1, x2, y2uniUnicode scalar value, if any, of the component. (decimal integer)Note: The following instance variables contain the actual text read from the APDB. If there are descrepancies between the APDB and the font, these values may differ from corresponding values given above. Therefore these values should not be used except for diagnostic purposes.UIDUnicode scalar value, if any, as specified in the APDB. (string of hex digits)PSNamePostscript name, if any, as specified in the APDBGIDGlyph id, if any, as specified in the APDBclassesCreated by "make_classes", this is a hash keyed by class name returning an array of GIDs for glyphs that are in the class. Classes are identified by extensions (part after a '.') on the post name of each glyph. For each such extension, two classes are defined. The first is the class of all glyphs that have that extension (class name is the extension). The second is the class of nominal glyphs corresponding to the glyphs with that extension (class name is the extension but with the prefix 'no_').listsCreated by "make_classes", this is a hash keyed by attachment point name (as modified by "make_point") returning an array of GIDs for glyphs that have the given attachment point.vecsIf defined, this variable will be updated by "make_classes". It is a hash, keyed by attachment point name (as modified by "make_point") returning a bit vec bit array, indexed by GID, each bit set to 1 if the corresponding glyph has the given attachment point.ligclassesOptionally created by make_classes if ligatures are requested and they exist. The base forms class is no_code while the ligatures are held in code.WARNINGSIf -errorfh not set, this accumulates any warning or error messages encountered.WARNINGSCount of number fo warnings or errors encountered. Requirements: · Perl


Font::Scripts::AP Related Software