1PDF::API2::Resource::FoUnste:r:CCoornetFroinbtu(t3e)d PePrDlF:D:oAcPuIm2e:n:tRaetsioounrce::Font::CoreFont(3)
2
3
4

NAME

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

SYNOPSIS

10           my $pdf = PDF::API2->new();
11           my $font = $pdf->font('Times-Roman');
12
13           my $page = $pdf->page();
14           my $text = $page->text();
15           $text->font($font, 20);
16           $text->translate(200, 700);
17           $text->text('Hello world!');
18
19           $pdf->save('/path/to/new.pdf');
20

STANDARD FONTS

22       The following fourteen fonts are available in all PDF readers that
23       conform to the PDF specification:
24
25       •   Courier
26
27       •   Courier-Bold
28
29       •   Courier-BoldOblique
30
31       •   Courier-Oblique
32
33       •   Helvetica
34
35       •   Helvetica-Bold
36
37       •   Helvetica-BoldOblique
38
39       •   Helvetica-Oblique
40
41       •   Symbol
42
43       •   Times-Bold
44
45       •   Times-BoldItalic
46
47       •   Times-Italic
48
49       •   Times-Roman
50
51       •   ZapfDingbats
52
53       These fonts (except Symbol and ZapfDingbats) include glyphs for ASCII
54       and certain Latin characters only.  If other characters are needed, you
55       will need to embed a font file.
56

METHODS

58   is_standard
59           my $boolean = $class->is_standard($name);
60
61       Returns true if $name is an exact, case-sensitive match for one of the
62       standard font names shown above.
63
64
65
66perl v5.36.0                      2022-07P-D2F2::API2::Resource::Font::CoreFont(3)
Impressum