logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PDF::API2::Resource::BaseFont - Base class for font resources

Methods

       $font = PDF::API2::Resource::BaseFont->new($pdf, $name)
           Return a font resource object.

       $descriptor = $font->descrByData()
           Return the font's FontDescriptor key structure based on the font's data.

Name

       PDF::API2::Resource::BaseFont - Base class for font resources

String Methods

       $utf8_string = $font->utfByStr($string)
           Return the utf8-string from string based on the font's encoding map.

       $string = $font->strByUtf($utf8_string)
           Return the encoded string from utf8-string based on the font's encoding map.

       $pdf_string = $font->textByStr($text)
           Return a properly formatted representation of $text for use in the PDF.

perl v5.38.2                                       2024-05-22                 PDF::API2::Resource::BaseFont(3pm)

See Also