PDF::API2::Resource::BaseFont - PDF::API2::Resource::BaseFont documentation


PDF-API2 documentation  | view source Contained in the PDF-API2 distribution.

Index


NAME

Top

PDF::API2::Resource::BaseFont

METHODS

Top

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

Returns a font resource object.

$font = PDF::API2::Resource::BaseFont->new_api $api, $name

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.

$descriptor = $font->descrByData()

Returns the fonts FontDescriptor key-structure based on the fonts data.

FONT-MANAGEMENT RELATED METHODS

Top

TYPOGRAPHY RELATED METHODS

Top

GLYPH RELATED METHODS

Top

STRING METHODS

Top

$utf8string = $font->utfByStr $string

Returns the utf8-string from string based on the fonts encoding map.

$string = $font->strByUtf $utf8string

Returns the encoded string from utf8-string based on the fonts encoding map.

$pdfstring = $font->textByStr $text

Returns a properly formatted representation of $text for use in the PDF.

AUTHOR

Top

Alfred Reibenschuh.


PDF-API2 documentation  | view source Contained in the PDF-API2 distribution.