1PDF::API2::Resource::FoUnste:r:CCoornetFroinbtu(t3e)d PePrDlF:D:oAcPuIm2e:n:tRaetsioounrce::Font::CoreFont(3)
2
3
4
6 PDF::API2::Resource::Font::CoreFont - Module for using the 14 PDF
7 built-in Fonts.
8
10 #
11 use PDF::API2;
12 #
13 $pdf = PDF::API2->new;
14 $cft = $pdf->corefont('Times-Roman');
15 #
16
18 $font = PDF::API2::Resource::Font::CoreFont->new $pdf, $fontname,
19 %options
20 Returns a corefont object.
21
22 Valid %options are:
23
24 -encode ... changes the encoding of the font from its default. See
25 perl's Encode for the supported values.
26
27 -pdfname ... changes the reference-name of the font from its
28 default. The reference-name is normally generated automatically
29 and can be retrived via $pdfname=$font->name.
30
31 $font = PDF::API2::Resource::Font::CoreFont->new_api $api, $fontname,
32 %options
33 Returns a corefont object. This method is different from 'new' that
34 it needs an PDF::API2-object rather than a
35 PDF::API2::PDF::File-object.
36
37 PDF::API2::Resource::Font::CoreFont->loadallfonts()
38 "Requires in" all fonts available as corefonts.
39
41 PDF::API2::CoreFont supports the following 'Adobe Core Fonts':
42 Courier
43 Courier-Bold
44 Courier-BoldOblique
45 Courier-Oblique
46 Helvetica
47 Helvetica-Bold
48 Helvetica-BoldOblique
49 Helvetica-Oblique
50 Symbol
51 Times-Bold
52 Times-BoldItalic
53 Times-Italic
54 Times-Roman
55 ZapfDingbats
56
57 PDF::API2::CoreFont supports the following 'Windows Fonts':
58 Georgia
59 Georgia,Bold
60 Georgia,BoldItalic
61 Georgia,Italic
62 Verdana
63 Verdana,Bold
64 Verdana,BoldItalic
65 Verdana,Italic
66 Webdings
67 Wingdings
68
70 Alfred Reibenschuh
71
72
73
74perl v5.12.2 2011-01P-D2F4::API2::Resource::Font::CoreFont(3)