Gisle Aas > Font-AFM > Font::AFM    Annotate this POD  Related
Modules    Open  1 View/Report Bugs Module Version: 1.20  
Source     Font::AFM - Interface to Adobe Font Metrics files
use Font::AFM;  $h = new Font::AFM "Helvetica";  $copyright =
$h->Notice;  $w = $h->Wx->{"aring"};  $w =
$h->stringwidth("Gisle", 10);  $h->dump;  # for debugging   This
module implements the Font::AFM class. Objects of this class are
initialised from an AFM (Adobe Font Metrics) file and allow you
to obtain information about the font and the metrics of the
various glyphs in the font.  All measurements in AFM files are
given in terms of units equal to 1/1000 of the scale factor of
the font being used. To compute actual sizes in a document,
these amounts should be multiplied by (scale factor of
font)/1000.  The following methods are available:  $afm =
Font::AFM->new($fontname)  Object constructor. Takes the name of
the font as argument. Croaks if the font can not be found.
Returns a 256-element array, where each element contai