Font::TTF::Glyph
Details
| Size: | 135K |
| Last Update: | 2008-06-11 09:44:34 |
| Version: | 0.40 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | Martin Hosken |
| Price: | $0.00 |
Description:
Font::TTF::Glyph 0.40 is libraries software developed by Martin Hosken.
Font::TTF::Glyph is a Perl module that holds a single glyph's 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 glyph's 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.
Requirements:
Perl
Font::TTF::Glyph 0.40 supports different languages (including english). It works with Linux.
Downloading Font::TTF::Glyph 0.40 will take several seconds if you use fast ADSL connection.
0 comments
Add to
Font::TTF::Glyph Version History
Related Software
|
|
From category: Debuggers |
| Extended Python Debugger 1.20 is debuggers software developed by R. Bernstein. Extended Python Debugger is a complete debugger for Python than the stock pdb.py debugger. It supports a \"rest... |
|
|
From category: Version-Control |
| Bky 1.0.0 is version control software developed by Angel Ortega. Bky is a minimalistic, distributed Version Control System/Source Code Management tool. Bky uses rsync as a backend to store revision... |
|
|
From category: Libraries |
| Aapl C++ Template Library 2.14 is libraries software developed by Adrian Thurston. Aapl is a C++ template library for generic programming. Aapl supports different generic programming paradi... |
|
|
From category: Quality-Assurance-and-Testing |
| Cobertura 1.8 is quality assurance and testing software developed by Mark Doliner. Cobertura is a free Java tool that calculates the percentage of code accessed by tests.Cobertura project can be us... |
|
|
From category: Libraries |
| Class::Meta 0.53 is libraries software developed by David Wheeler. Class::Meta is a Perl class automation, introspection, and data validation. SYNOPSIS Generate a class: package... |
|
|
From category: Code-Generators |
| CodeWorker 4.2 is code generators software developed by CodeWorker. CodeWorker is a versatile Open Source, licensed under GNU Lesser General Public License, parsing tool and a source code generator... |
|
|
From category: Libraries |
| CILib 0.5.6 is libraries software developed by CILib Team. CILib comes from Computational Intelligence Library. CILib is a collaborative research framework for developing Computational Intellige... |
|
|
From category: Libraries |
| AxKit::App::Gallery::stylesheets 0.5 is libraries software developed by Nik Clayton. AxKit::App::Gallery works by generating XML, and then passing the generated XML through a collection of styleshe... |
|
|
From category: Debuggers |
| cgdb 0.6.3 is debuggers software developed by Robert Rossi. CGDB is a curses-based interface to the GNU Debugger (GDB). cgdb\'s goal is to be lightweight and responsive; not encumbered with unneces... |
|
|
From category: Libraries |
| CGI::Application::Plugin::RateLimit 1.0 is libraries software developed by Sam Tregar. CGI::Application::Plugin::RateLimit is a plugin for CGI::Application which provides protection against a user... |
|
|
From category: Libraries |
| Authen::Captcha 1.023 is libraries software developed by Seth T. Jackson and Josh I. Miller. Authen::Captcha is a Perl extension for creating captcha\'s to verify the human element in transactions.... |
|
|
From category: Compilers |
| CHICKEN is a compiler for the Scheme programming language.... |
|
|
From category: Libraries |
| Audio::DB::Adaptor::dbi::sqlite 0.01 is libraries software developed by Todd W. Harris. Audio::DB::Adaptor::dbi::sqlite is a database adaptor for a specific mysql schema. This adaptor implem... |
|
|
From category: Libraries |
| ALUT 1.0.1 is libraries software developed by OpenAL Team. At time of writing (August 2005), ALUT was a set of undocumented semi-portable functions that were mixed up in the OpenAL library distribu... |
|
|
From category: Libraries |
| MyPerlCrap is meant to simulate playing the field at a craps table.... |
Leave a comment