1PDF::Builder::Resource:U:sFeorntC:o:nCtorriebFuotnetdP(D3PF)e:r:lBuDiolcduemre:n:tRaetsioounrce::Font::CoreFont(3)
2
3
4

NAME

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

SYNOPSIS

10           #
11           use PDF::Builder;
12           #
13           my $pdf = PDF::Builder->new();
14           my $cft = $pdf->font('Times-Roman');
15          #my $cft = $pdf->corefont('Times-Roman');
16           #
17           my $page = $pdf->page();
18           my $text = $page->text();
19           $text->font($cft, 20);
20           $text->translate(200, 700);
21           $text->text("Hello, World!");
22

METHODS

24       $font = PDF::Builder::Resource::Font::CoreFont->new($pdf, $fontname,
25       %options)
26           Returns a corefont object.
27
28           Valid %options are:
29
30               encode ... changes the encoding of the font from its default.
31               See perl's Encode for the supported values. Warning: only
32               single byte encodings are permitted. Multibyte encodings such
33               as 'utf8' are forbidden.
34
35               pdfname ... changes the reference-name of the font from its
36               default.  The reference-name is normally generated
37               automatically and can be retrieved via
38               "$pdfname=$font-"name()>.
39
40   Supported typefaces
41       standard PDF types
42
43           •   helvetica helveticaoblique helveticabold helvetiaboldoblique
44
45               May have Arial substituted on some systems (e.g., Windows)
46
47           •   courier courieroblique courierbold courierboldoblique
48
49               Fixed pitch, may have Courier New substituted on some systems
50               (e.g., Windows)
51
52           •   timesroman timesitalic timesbold timesbolditalic
53
54               May have Times New Roman substituted on some systems (e.g.,
55               Windows)
56
57           •   symbol zapfdingbats
58
59       Primarily Windows typefaces
60
61           •   georgia georgiaitalic georgiabold georgiabolditalic
62
63           •   verdana verdanaitalic verdanabold verdanabolditalic
64
65           •   trebuchet trebuchetitalic trebuchetbold trebuchetbolditalic
66
67           •   bankgothic bankgothicitalic bankgothicbold bankgothicitalic
68
69               Free versions of Bank Gothic are often only medium weight.
70
71           •   webdings wingdings
72
73       Keep in mind that only font metrics (widths) are provided with
74       PDF::Builder; the fonts themselves are provided by the reader's machine
75       (often packaged with the operating system, or obtained separately by
76       the user). To use a specific font may require you to obtain one or more
77       files from some source.
78
79       If a font (typeface and variant) is not available on a given reader's
80       machine, a substitution may be automatically made. For example,
81       Helvetica is usually not shipped with Windows machines, and Arial might
82       be substituted.  For most characters, the glyph widths will be the
83       same, but this can not be guaranteed!
84
85       PDF::Builder currently uses the [typeface].pm files to map glyph names
86       to code points (single byte encodings only) and to look up the glyph
87       widths for character positioning. There is no guarantee that a given
88       font file includes all the desired glyphs, nor that the widths will be
89       absolutely the same, even in different releases of the same font.
90
91       $bool = $class->is_standard($name)
92           Returns true if $name is an exact, case-sensitive match for one of
93           the standard font names shown above.
94
95       PDF::Builder::Resource::Font::CoreFont->loadallfonts()
96           "Requires in" all fonts available as corefonts.
97

AUTHOR

99       Alfred Reibenschuh
100
101
102
103perl v5.36.0                      2022P-D0F9:-:1B3uilder::Resource::Font::CoreFont(3)
Impressum