PDF::API2::Resource::Font::neTrueType(3pm)

PDF::API2::Resource::Font::neTrueType3pm

Module for using 8bit nonembedded truetype fonts.

Usage

    #
    use PDF::API2;
    #
    $pdf = PDF::API2->new;
    $cft = $pdf->nettfont('Times-Roman.ttf', -encode => 'latin1');
    #

Methods

$font = PDF::API2::Resource::Font::neTrueType->new $pdf, $fontfile, %options

Returns a corefont object.

Valid %options are:

-encode ... changes the encoding of the font from its default. See perl's Encode for the supported values.

-pdfname ... changes the reference-name of the font from its default. The reference-name is normally generated automatically and can be retrived via $pdfname=$font->name.

$font = PDF::API2::Resource::Font::neTrueType->new_api $api, $fontname, %options

Returns a ne-truetype 8bit only object. This method is different from 'new' that it needs an PDF::API2-object rather than a PDF::API2::PDF::File-object.

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

Author

alfred reibenschuh

From libpdf-api2-perl 0.73-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.