|
/usr/local/perl/lib/site_perl/5.6.1/PDF/API2/cFont.pm |
PDF::API2::cFont - a perl-module providing core-font objects for both Text::PDF and PDF::API2.
use PDF::API2;
use PDF::API2::cFont;
$api = PDF::API2->new;
...
$font = PDF::API2::cFont->new_api($api,'Helvetica', -encoding => 'latin1');
OR
use Text::PDF::File;
use PDF::API2::cFont;
$pdf = Text::PDF::File->new('some.pdf');
...
$font = PDF::API2::cFont->new($pdf,'Helvetica', -encoding => 'latin1', -pdfname => 'F0');
Valid %options are:
'-encoding' ... changes the encoding of the font from its default.
'-pdfname' ... changes the reference-name of the font from its default.
On '-encoding': The natively supported encodings are 'latin1','winansi' and 'macroman'. Other Encodings are supported via PDF::API2::UniMap.
On '-pdfname': The reference-name is normally generated automatically and can be retrived via $pdfname=$font->name.
Courier
Courier-Bold
Courier-BoldOblique
Courier-Oblique
Helvetica
Helvetica-Bold
Helvetica-BoldOblique
Helvetica-Oblique
Symbol
Times-Bold
Times-BoldItalic
Times-Italic
Times-Roman
ZapfDingbats
Arial
Arial,Bold
Arial,BoldItalic
Arial,Italic
BankGothic
BankGothic,Bold
BankGothic,BoldItalic
BankGothic,Italic
CourierNew
CourierNew,Bold
CourierNew,BoldItalic
CourierNew,Italic
Georgia
Georgia,Bold
Georgia,BoldItalic
Georgia,Italic
Impact
Impact,Italic
OzHandicraft
OzHandicraft,Bold
OzHandicraft,BoldItalic
OzHandicraft,Italic
TimesNewRoman
TimesNewRoman,Bold
TimesNewRoman,BoldItalic
TimesNewRoman,Italic
Trebuchet
Trebuchet,Bold
Trebuchet,BoldItalic
Trebuchet,Italic
Verdana
Verdana,Bold
Verdana,BoldItalic
Verdana,Italic
Webdings
Wingdings
sans
sans,bold
sans,bolditalic
sans,italic
serif
serif,bold
serif,bolditalic
serif,italic
typewriter
typewriter,bold
typewriter,bolditalic
typewriter,italic
greek
bats
alfred reibenschuh
|
/usr/local/perl/lib/site_perl/5.6.1/PDF/API2/cFont.pm |