$font = PDF::API2::TrueTypeFont->new $pdf, $file, %options                 

Returns a font object.

Defined Options:


	-nonembed ... prohibits embedding of the font (you cant use utf8 with that).


	-encode ... specify fonts encoding for non-utf8 text.

        $font = PDF::API2::TrueTypeFont->new_api $api, $file, %options                 

Returns a corefont object. This method is different from 'new' that it needs an PDF::API2-object rather than a Text::PDF::File-object.

        $pdfstring = $font->text $text                 

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

        $pdfstring = $font->text_ucs2 $text                 

Returns a properly formated string-representation of $text for use in the PDF but requires $text to be in UCS2.

        $pdfstring = $font->text_utf8 $text                 

Returns a properly formated string-representation of $text for use in the PDF but requires $text to be in UTF8.

        $wd = $font->width $text                 

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

        $wd = $font->width_ucs2 $text                 

Returns the width of $text as if it were at size 1, but requires $text to be in UCS2.

        $wd = $font->width_utf8 $text                 

Returns the width of $text as if it were at size 1, but requires $text to be in UTF8.

        @widths = $font->width_array $text                 

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

        $font = PDF::API2::TrueTypeFont0->new $pdf, $des                 

Returns a font object.

        $pdfstring = $font->text $text                 

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

        $pdfstring = $font->text_ucs2 $text                 

Returns a properly formated string-representation of $text for use in the PDF but requires $text to be in UCS2.

        $pdfstring = $font->text_utf8 $text                 

Returns a properly formated string-representation of $text for use in the PDF but requires $text to be in UTF8.

        $wd = $font->width $text                 

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

        $wd = $font->width_ucs2 $text                 

Returns the width of $text as if it were at size 1, but requires $text to be in UCS2.

        $wd = $font->width_utf8 $text                 

Returns the width of $text as if it were at size 1, but requires $text to be in UTF8.

        @widths = $font->width_array $text                 

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

AUTHOR

alfred reibenschuh