PDF::API2::Resource::BaseFont - Base class for font resources
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.
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 $font->name).
Returns the fonts symbol flag.
Returns the fonts compact-font-format flag.
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.
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 $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 $text as if they were at size 1.
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 $text for use in the PDF.
To install PDF::API2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDF::API2
CPAN shell
perl -MCPAN -e shell install PDF::API2
For more information on module installation, please visit the detailed CPAN module installation guide.