1Text::PDF::TTFont0(3) User Contributed Perl DocumentationText::PDF::TTFont0(3)
2
3
4
6 Text::PDF::TTFont0 - Inherits from PDF::Dict and represents a TrueType
7 Type 0 font within a PDF file.
8
10 A font consists of two primary parts in a PDF file: the header and the
11 font descriptor. Whilst two fonts may share font descriptors, they will
12 have their own header dictionaries including encoding and widhth
13 information.
14
16 There are no instance variables beyond the variables which directly
17 correspond to entries in the appropriate PDF dictionaries.
18
20 Text::PDF::TTFont->new($parent, $fontfname. $pdfname)
21 Creates a new font resource for the given fontfile. This includes the
22 font descriptor and the font stream. The $pdfname is the name by which
23 this font resource will be known throughout a particular PDF file.
24
25 All font resources are full PDF objects.
26
27 out_text($text)
28 Returns the string to be put into a content stream for text to be
29 output in this font. The text is assumed to be UTF8 encoded and the
30 return string is a glyph sequence for the text. If subsetting is
31 enabled, then all the glyphs returned are also marked for output.
32
33 out_glyphs(@n)
34 Marks the glyphs as being needed in the output font when subsetting.
35 Returns a string to render the glyphs as specified.
36
37 width($text)
38 Returns the width of the string, assuming it to be UTF8 encoded.
39
40 outobjdeep($fh, $pdf, %opts)
41 Handles the creation of the font stream including subsetting at this
42 point. So if you get this far, that's it for subsetting.
43
44 ship_out($pdf)
45 Ship this font out to the given $pdf file context
46
47 empty
48 Empty the font of as much as possible in order to save memory
49
50
51
52perl v5.12.0 2010-05-07 Text::PDF::TTFont0(3)