NAME

PDF::Builder::Resource::Font::CoreFont - Module for using the 14 standard PDF built-in Fonts (plus 15 Windows Fonts).

SYNOPSIS

    #
    use PDF::Builder;
    #
    my $pdf = PDF::Builder->new();
    my $cft = $pdf->font('Times-Roman');
   #my $cft = $pdf->corefont('Times-Roman');
    #
    my $page = $pdf->page();
    my $text = $page->text();
    $text->font($cft, 20);
    $text->translate(200, 700);
    $text->text("Hello, World!");

METHODS

$font = PDF::Builder::Resource::Font::CoreFont->new($pdf, $fontname, %options)

Returns a corefont object.

Valid %options are:

Supported typefaces

standard PDF types

Primarily Windows typefaces

Keep in mind that only font metrics (widths) are provided with PDF::Builder; the fonts themselves are provided by the reader's machine (often packaged with the operating system, or obtained separately by the user). To use a specific font may require you to obtain one or more files from some source.

If a font (typeface and variant) is not available on a given reader's machine, a substitution may be automatically made. For example, Helvetica is usually not shipped with Windows machines, and Arial might be substituted. For most characters, the glyph widths will be the same, but this can not be guaranteed!

PDF::Builder currently uses the [typeface].pm files to map glyph names to code points (single byte encodings only) and to look up the glyph widths for character positioning. There is no guarantee that a given font file includes all the desired glyphs, nor that the widths will be absolutely the same, even in different releases of the same font.

$bool = $class->is_standard($name)

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

PDF::Builder::Resource::Font::CoreFont->loadallfonts()

"Requires in" all fonts available as corefonts.

AUTHOR

Alfred Reibenschuh

NAVIGATION LINKS

Up (Parents)

Master Index 
PDF::Builder -- Facilitates the creation and modification of PDF files
PDF::Builder::Resource -- Base class for PDF resources. Inherit from PDF::Builder::Basic::PDF::Dict
PDF::Builder::Resource::Font -- some common support routines for font files. Inherits from PDF::Builder::Resource::BaseFont

Siblings

PDF::Builder::Resource::Font::BdFont -- Module for using bitmapped Fonts.
PDF::Builder::Resource::Font::Postscript -- support routines for using PostScript fonts. Inherits from PDF::Builder::Resource::Font
PDF::Builder::Resource::Font::SynFont -- Module for creating temporary synthetic Fonts.

Down (Children)

PDF::Builder::Resource::Font::CoreFont::bankgothic -- font-specific information for Bank Gothic font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::courier -- font-specific information for regular Courier font
PDF::Builder::Resource::Font::CoreFont::courierbold -- font-specific information for bold weight Courier font
PDF::Builder::Resource::Font::CoreFont::courierboldoblique -- font-specific information for bold weight + slanted Courier font
PDF::Builder::Resource::Font::CoreFont::courieroblique -- font-specific information for slanted Courier font
PDF::Builder::Resource::Font::CoreFont::georgia -- font-specific information for regular Georgia font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::georgiabold -- font-specific information for bold weight Georgia font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::georgiabolditalic -- font-specific information for bold weight + italic Georgia font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::georgiaitalic -- font-specific information for italic Georgia font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::helvetica -- font-specific information for regular Helvetica font. Metrics and glyph list from Arial typeface.
PDF::Builder::Resource::Font::CoreFont::helveticabold -- font-specific information for bold weight Helvetica font. Metrics and glyph list from Arial typeface.
PDF::Builder::Resource::Font::CoreFont::helveticaboldoblique -- font-specific information for bold weight + slanted Helvetica font. Metrics and glyph list from Arial font.
PDF::Builder::Resource::Font::CoreFont::helveticaoblique -- font-specific information for slanted Helvetica font. Metrics and glyph list from Arial font.
PDF::Builder::Resource::Font::CoreFont::symbol -- font-specific information for the Symbol font
PDF::Builder::Resource::Font::CoreFont::timesbold -- font-specific information for bold weight Times font
PDF::Builder::Resource::Font::CoreFont::timesbolditalic -- font-specific information for bold weight + italic Times font
PDF::Builder::Resource::Font::CoreFont::timesitalic -- font-specific information for italic Times font
PDF::Builder::Resource::Font::CoreFont::timesroman -- font-specific information for regular (roman) Times font
PDF::Builder::Resource::Font::CoreFont::trebuchet -- font-specific information for regular Trebuchet font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::trebuchetbold -- font-specific information for bold-weight Trebuchet font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::trebuchetbolditalic -- font-specific information for bold weight + italic Trebuchet font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::trebuchetitalic -- font-specific information for italic Trebuchet font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::verdana -- font-specific information for regular Verdana font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::verdanabold -- font-specific information for bold weight Verdana font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::verdanabolditalic -- font-specific information for bold weight + italic Verdana font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::verdanaitalic -- font-specific information for italic Verdana font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::webdings -- font-specific information for WebDings symbol font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::wingdings -- font-specific information for WingDings symbol font (not standard PDF core)
PDF::Builder::Resource::Font::CoreFont::zapfdingbats -- font-specific information for Zapf Dingbats symbol font

###