1Text::PDF::SFont(3)   User Contributed Perl Documentation  Text::PDF::SFont(3)
2
3
4

NAME

6       Text::PDF::SFont - PDF Standard inbuilt font resource object. Inherits
7       from Text::PDF::Dict
8

METHODS

10   Text::PDF::SFont->new($parent, $name, $pdfname)
11       Creates a new font object with given parent and name. The name must be
12       from one of the core 14 base fonts included with PDF. These are:
13
14           Courier,     Courier-Bold,   Courier-Oblique,   Courier-BoldOblique
15           Times-Roman, Times-Bold,     Times-Italic,      Times-BoldItalic
16           Helvetica,   Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique
17           Symbol,      ZapfDingbats
18
19       The $pdfname is the name that this particular font object will be
20       referenced by throughout the PDF file. If you want to play silly games
21       with naming, then you can write the code to do it!
22
23       All fonts in this system are full PDF objects.
24

BUGS

26       Currently no width support for Symbol or ZapfDingbats, I haven't got my
27       head around the AFMs yet.
28
29       MacExpertEncoding not supported yet (I don't have the width info for
30       any of the fonts)
31
32   $f->width($text)
33       Returns the width of the text in em.
34
35   $f->trim($text, $len)
36       Trims the given text to the given length (in em) returning the trimmed
37       text
38
39   $f->out_text($text)
40       Acknowledges the text to be output for subsetting purposes, etc.
41
42
43
44perl v5.12.0                      2010-05-07               Text::PDF::SFont(3)
Impressum