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 PDF
7       built-in Fonts.
8

SYNOPSIS

10           #
11           use PDF::Builder;
12           #
13           $pdf = PDF::Builder->new();
14           $cft = $pdf->corefont('Times-Roman');
15           #
16

METHODS

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

AUTHOR

82       Alfred Reibenschuh
83
84
85
86perl v5.34.0                      2022P-D0F1:-:2B1uilder::Resource::Font::CoreFont(3)
Impressum