Linux SoftwareProgrammingLibrariesFont::TTF::Glyph 0.40

Font::TTF::Glyph 0.40


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
Developer:   Martin Hosken
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   135K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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
    tags the glyph  there are  instance variables  for each  glyph the  the glyf  glyf table  each glyph  read file  the flags  the read  for this  the component  

    Download Font::TTF::Glyph 0.40


     http://ftp.hostingromania.ro/Linux/mirrors/ftp.cpan.org/authors/id/M/MH/MHOSKEN/Font-TTF-0.40.tar.gz


    Authors software

    Similar software

    Font::TTF::Glyph 0.40 (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

    Bio::Graphics::Glyph::minmax 1.4 (by Lincoln Stein)
    Bio::Graphics::Glyph::minmax is the minmax glyph.

    SYNOPSIS

    See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph >.

    Th

    Font::TTF::Scripts::AP 0.7 (by Font::TTF::Scripts::AP Team)
    Font::TTF::Scripts::AP is a memory representation of a TTFBuilder Attachment Point database (APDB).

    SYNOPSIS

    use Font::TTF::Sc

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

    SYNOPSIS

    use Fo

    Bio::Graphics::Glyph::alignment 1.4 (by Allen Day)
    Bio::Graphics::Glyph::alignment is the "alignment" glyph.

    SYNOPSIS

    See L< Bio::Graphics::Panel > and L< Bio::Graphics::Glyph

    gbdfed 1.0 (by Mark Leisher)
    gbdfed lets you interactively create new bitmap font files or modify existing ones

    SVG::Graph 0.01 (by Allen Day and Chris To)
    SVG::Graph is a Perl module to visualize your data in Scalable Vector Graphics (SVG) format.

    SYNOPSIS

    use SVG::Graph;
    use

    FreeType2 2.2.1 (by FreeType team)
    FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable and portable while capable of produ

    FontForge 20061014 (by George Williams)
    FontForge is an outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg a

    FreeType 1.3.1 (by FreeType team)
    FreeType 1 is a portable and highly efficient TrueType rendering engine, that is now successfully used to bring TrueType support to a


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags