man PDF::API2::Resource::BaseFont () - Font resource object for PDF::API2

NAME

PDF::API2::Resource::BaseFont - Font resource object for PDF::API2

SYNOPSIS

 $font = PDF::API2::Resource::BaseFont->new $pdf, $name

Returns a font resource object. Returns a font resource object. This method is different from 'new' that it needs an PDF::API2-object rather than a Text::PDF::File-object. Returns the fonts FontDescriptor key-structure based on the fonts data.

FONT-MANAGEMENT RELATED METHODS

Returns the fonts name (aka. display-name). Returns the fonts alternative-name (aka. windows-name for a postscript font). Returns the fonts subname (aka. font-variant, schriftschnitt). Returns the fonts name to be used internally (should be equal to CW$font->name). Returns the fonts symbol flag. Returns the fonts compact-font-format flag.

TYPOGRAPHY RELATED METHODS

Returns the fonts bounding-box. Returns the fonts capheight value. Returns the fonts xheight value. Returns the fonts missingwidth value. Returns the fonts maxwidth value. Returns the fonts avgwidth value. Returns the fonts flags value. Returns the fonts stemv value. Returns the fonts stemh value. Returns the fonts italicangle value. Returns the fonts isfixedpitch flag. Returns the fonts underlineposition value. Returns the fonts underlinethickness value. Returns the fonts ascender value. Returns the fonts descender value.

GLYPH RELATED METHODS

Returns the defined glyph-names of the font. Returns the number of defined glyph-names of the font. Returns the unicode by glyph-name. Returns the unicode by the fonts encoding map. Returns the unicode by the fonts default map. Returns the character by the given glyph-name of the fonts encoding map. Returns the character by the given unicode of the fonts encoding map. Returns the character by the given glyph-name of the fonts default map. Returns the character by the given unicode of the fonts default map. Returns the glyphs name by the fonts unicode map. BEWARE: non-standard glyph-names are mapped onto the ms-symbol area (0xF000). Returns the glyphs name by the fonts encoding map. Returns the glyphs name by the fonts default map. Returns the glyphs width. Returns the unicodes width. Returns the characters width based on the current encoding. Returns the characters width based on the fonts default encoding. Returns the width of CW$text as if it were at size 1. BEWARE: works only correctly if a proper perl-string is used either in native or utf8 format (check utf8-flag). Returns the widths of the words in CW$text as if they were at size 1.

STRING METHODS

Returns the utf8-string from string based on the fonts encoding map. Returns the encoded string from utf8-string based on the fonts encoding map. Returns a properly formatted representation of CW$text for use in the PDF.

AUTHOR

alfred reibenschuh.

HISTORY

    $Log: BaseFont.pm,v $
    Revision 2.0  2005/11/16 02:16:04  areibens
    revision workaround for SF cvs import not to screw up CPAN

    Revision 1.2  2005/11/16 01:27:48  areibens
    genesis2

    Revision 1.1  2005/11/16 01:19:25  areibens
    genesis

    Revision 1.18  2005/10/19 19:06:27  fredo
    added handling of kerning

    Revision 1.17  2005/06/17 19:44:03  fredo
    fixed CPAN modulefile versioning (again)

    Revision 1.16  2005/06/17 18:53:34  fredo
    fixed CPAN modulefile versioning (dislikes cvs)

    Revision 1.15  2005/03/14 22:01:06  fredo
    upd 2005

    Revision 1.14  2005/01/21 10:03:09  fredo
    added object saver for cmap

    Revision 1.13  2004/12/16 00:30:53  fredo
    added no warn for recursion

    Revision 1.12  2004/11/24 20:10:55  fredo
    added virtual font handling

    Revision 1.11  2004/11/22 02:05:32  fredo
    added pdf-1.5 font param specs

    Revision 1.10  2004/10/26 14:41:37  fredo
    added panose identification style entry

    Revision 1.9  2004/10/17 03:55:00  fredo
    simplified ToUnicode associated CMap for single-byte fonts

    Revision 1.8  2004/10/17 03:47:36  fredo
    fixed inclusion of ToUnicode compatible key and associated CMap

    Revision 1.7  2004/06/15 09:14:41  fredo
    removed cr+lf

    Revision 1.6  2004/06/07 19:44:36  fredo
    cleaned out cr+lf for lf

    Revision 1.5  2004/04/20 09:47:34  fredo
    fixed unicode to font-encoding-vector conversion

    Revision 1.4  2003/12/08 13:05:32  Administrator
    corrected to proper licencing statement

    Revision 1.3  2003/11/30 17:28:54  Administrator
    merged into default

    Revision 1.2.2.1  2003/11/30 16:56:35  Administrator
    merged into default

    Revision 1.2  2003/11/30 11:44:49  Administrator
    added CVS id/log