Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

PDF::API2::Resource::Font::CoreFont

Name PDF::API2::Resource::Font::CoreFont
Version 2.043
Located at /usr/share/perl5
File /usr/share/perl5/PDF/API2/Resource/Font/CoreFont.pm
Is Core No
Search CPAN for this module PDF::API2::Resource::Font::CoreFont
Documentation PDF::API2::Resource::Font::CoreFont
Module Details PDF::API2::Resource::Font::CoreFont

NAME

PDF::API2::Resource::Font::CoreFont - Module for using the 14 standard PDF fonts.


SYNOPSIS

    my $pdf = PDF::API2->new();
    my $font = $pdf->font('Times-Roman');
    my $page = $pdf->page();
    my $text = $page->text();
    $text->font($font, 20);
    $text->translate(200, 700);
    $text->text('Hello world!');
    $pdf->save('/path/to/new.pdf');


STANDARD FONTS

The following fourteen fonts are available in all PDF readers that conform to the PDF specification:

These fonts (except Symbol and ZapfDingbats) include glyphs for ASCII and certain Latin characters only. If other characters are needed, you will need to embed a font file.


METHODS

is_standard

    my $boolean = $class->is_standard($name);

Returns true if $name is an exact, case-sensitive match for one of the standard font names shown above.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026