Font::TTF::Glyph 0.40
Sponsored Links
Font::TTF::Glyph 0.40 Ranking & Summary
File size:
0.13 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1129
Date added:
2006-10-03
Publisher:
Martin Hosken
Font::TTF::Glyph 0.40 description
Font::TTF::Glyph is a Perl module that holds a single glyphs information.
This is a single glyph description as held in a TT font. On creation only its header is read. Thus you can get the bounding box of each glyph without having to read all the other information.
INSTANCE VARIABLES
In addition to the named variables in a glyph header (xMin etc.), there are also all capital instance variables for holding working information, mostly from the location table.
The standard attributes each glyph has are:
numberOfContours
xMin
yMin
xMax
yMax
There are also other, derived, instance variables for each glyph which are read when the whole glyph is read (via read_dat):
instLen
Number of bytes in the hinting instructions (Warning this variable is deprecated, use length($g-{hints})> instead).
hints
The string containing the hinting code for the glyph
In addition there are other attribute like instance variables for simple glyphs:
For each contour there is:
endPoints
An array of endpoints for each contour in the glyph. There are numberOfContours contours in a glyph. The number of points in a glyph is equal to the highest endpoint of a contour.
There are also a number of arrays indexed by point number
flags
The flags associated with reading this point. The flags for a point are recalculated for a point when it is updated. Thus the flags are not very useful. The only important bit is bit 0 which indicates whether the point is an on curve point, or an off curve point.
x
The absolute x co-ordinate of the point.
y
The absolute y co-ordinate of the point
For composite glyphs there are other variables
metric
This holds the component number (not its glyph number) of the component from which the metrics for this glyph should be taken.
comps
This is an array of hashes for each component. Each hash has a number of elements:
glyph
The glyph number of the glyph which comprises this component of the composite.
args
An array of two arguments which may be an x, y co-ordinate or two attachment points (one on the base glyph the other on the component). See flags for details.
flag
The flag for this component
scale
A 4 number array for component scaling. This allows stretching, rotating, etc. Note that scaling applies to placement co-ordinates (rather than attachment points) before locating rather than after.
numPoints
This is a generated value which contains the number of components read in for this compound glyph.
The private instance variables are:
INFILE (P)
The input file form which to read any information
LOC (P)
Location relative to the start of the glyf table in the read file
BASE (P)
The location of the glyf table in the read file
LEN (P)
This is the number of bytes required by the glyph. It should be kept up to date by calling the update method whenever any of the glyph content changes.
OUTLOC (P)
Location relative to the start of the glyf table. This variable is only active whilst the output process is going on. It is used to inform the location table where the glyphs location is, since the glyf table is output before the loca table due to alphabetical ordering.
OUTLEN (P)
This indicates the length of the glyph data when it is output. This more accurately reflects the internal memory form than the LEN variable which only reflects the read file length. The OUTLEN variable is only set after calling out or out_dat.
This is a single glyph description as held in a TT font. On creation only its header is read. Thus you can get the bounding box of each glyph without having to read all the other information.
INSTANCE VARIABLES
In addition to the named variables in a glyph header (xMin etc.), there are also all capital instance variables for holding working information, mostly from the location table.
The standard attributes each glyph has are:
numberOfContours
xMin
yMin
xMax
yMax
There are also other, derived, instance variables for each glyph which are read when the whole glyph is read (via read_dat):
instLen
Number of bytes in the hinting instructions (Warning this variable is deprecated, use length($g-{hints})> instead).
hints
The string containing the hinting code for the glyph
In addition there are other attribute like instance variables for simple glyphs:
For each contour there is:
endPoints
An array of endpoints for each contour in the glyph. There are numberOfContours contours in a glyph. The number of points in a glyph is equal to the highest endpoint of a contour.
There are also a number of arrays indexed by point number
flags
The flags associated with reading this point. The flags for a point are recalculated for a point when it is updated. Thus the flags are not very useful. The only important bit is bit 0 which indicates whether the point is an on curve point, or an off curve point.
x
The absolute x co-ordinate of the point.
y
The absolute y co-ordinate of the point
For composite glyphs there are other variables
metric
This holds the component number (not its glyph number) of the component from which the metrics for this glyph should be taken.
comps
This is an array of hashes for each component. Each hash has a number of elements:
glyph
The glyph number of the glyph which comprises this component of the composite.
args
An array of two arguments which may be an x, y co-ordinate or two attachment points (one on the base glyph the other on the component). See flags for details.
flag
The flag for this component
scale
A 4 number array for component scaling. This allows stretching, rotating, etc. Note that scaling applies to placement co-ordinates (rather than attachment points) before locating rather than after.
numPoints
This is a generated value which contains the number of components read in for this compound glyph.
The private instance variables are:
INFILE (P)
The input file form which to read any information
LOC (P)
Location relative to the start of the glyf table in the read file
BASE (P)
The location of the glyf table in the read file
LEN (P)
This is the number of bytes required by the glyph. It should be kept up to date by calling the update method whenever any of the glyph content changes.
OUTLOC (P)
Location relative to the start of the glyf table. This variable is only active whilst the output process is going on. It is used to inform the location table where the glyphs location is, since the glyf table is output before the loca table due to alphabetical ordering.
OUTLEN (P)
This indicates the length of the glyph data when it is output. This more accurately reflects the internal memory form than the LEN variable which only reflects the read file length. The OUTLEN variable is only set after calling out or out_dat.
Font::TTF::Glyph 0.40 Screenshot
Font::TTF::Glyph 0.40 Keywords
TTF
Glyph 0.40
instance variables
Perl module
glyph
number
read
point
information
variables
Font::TTF::Glyph
FontTTFGlyph
Font::TTF::Glyph 0.40
Libraries
Programming
Bookmark Font::TTF::Glyph 0.40
Font::TTF::Glyph 0.40 Copyright
WareSeeker periodically updates pricing and software information of Font::TTF::Glyph 0.40 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Font::TTF::Glyph 0.40 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Font::FreeType::Glyph is a Perl module that contains glyphs from font typefaces loaded from Font::FreeType. Free Download
Font::TTF::Scripts::AP is a memory representation of a TTFBuilder Attachment Point database (APDB). Free Download
RPM::Constants is a Perl module with groups of RPM-defined symbols. Free Download
Fontlinge is a font management and organisation for TrueType & PostScript. Free Download
Font::Scripts::AP is a Perl module for memory representation of a TTFBuilder Attachment Point database (APDB). Free Download
Mail::Action is a Perl module for building modules that act on incoming mail. Free Download
Filesys::DiskSpace is a Perl module as a df replacement. Free Download
Bio::Graphics::Glyph::cds module contains the cds glyph. Free Download
Latest Software
Popular Software
Favourite Software