PDF::API2::Resource::BaseFont - Base class for font resources
Returns a font resource object.
Returns the font's FontDescriptor key-structure based on the font's data.
Returns the font's name (aka. display-name).
Returns the font's alternative-name (aka. windows-name for a postscript font).
Returns the font's subname (aka. font-variant, schriftschnitt).
Returns the font's name to be used internally (should be equal to $font->name).
Returns the font's symbol flag.
Returns the font's compact-font-format flag.
Returns the font's bounding-box.
Returns the font's capheight value.
Returns the font's xheight value.
Returns the font's missingwidth value.
Returns the font's maxwidth value.
Returns the font's avgwidth value.
Returns the font's flags value.
Returns the font's stemv value.
Returns the font's stemh value.
Returns the font's italicangle value.
Returns the font's isfixedpitch flag.
Returns the font's underlineposition value.
Returns the font's underlinethickness value.
Returns the font's ascender value.
Returns the font's 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 glyph's name by the fonts unicode map. BEWARE: non-standard glyph-names are mapped onto the ms-symbol area (0xF000).
Returns the glyph's name by the font's encoding map.
Returns the glyph's name by the font's default map.
Returns the glyph's width.
Returns the unicode's width.
Returns the character's width based on the current encoding.
Returns the character's width based on the font's 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 font's 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.