PDF::API2::Font

        $font2 = $font->clone $subkey
                

Returns a clone of a font object.

        @glyphs = $font->glyphs $encoding
                

Returns an array with glyphnames of the specified encoding.

        $font->encode $encoding
                

Changes the encoding of the font object. If you want more than one encoding for one font use 'clone' and then 'encode'.

Note: The following encodings are supported (as of version 0.1.16_beta):


	adobe-standard adobe-symbol adobe-zapf-dingbats
	cp1250 cp1251 cp1252
	cp437 cp850
	es es2 pt pt2
	iso-8859-1 iso-8859-2 latin1 latin2
	koi8-r koi8-u
	macintosh
	microsoft-dingbats

Note: Other encodings must be seperately installed via the pdf-api2-unimaps archive.

        $pdfstring = $font->text $text
                

Returns a properly formated string-representation of $text for use in the PDF.

        $pdfstring = $font->text_hex $text
                

Returns a properly formated hex-representation of $text for use in the PDF.

        $wd = $font->width $text
                

Returns the width of $text as if it were at size 1.

        @widths = $font->width_array $text
                

Returns the widths of the words in $text as if they were at size 1.

AUTHOR

alfred reibenschuh