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

NAME

6       Text::PDF::TTFont - Inherits from Text::PDF::Dict and represents a
7       TrueType font within a PDF file.
8

DESCRIPTION

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

INSTANCE VARIABLES

16       There are no instance variables beyond the variables which directly
17       correspond to entries in the appropriate PDF dictionaries.
18

METHODS

20   Text::PDF::TTFont->new($parent, $fontfname, $pdfname, %opts)
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 throughtout a particular PDF file.
24
25       All font resources are full PDF objects.
26
27   $t->width($text)
28       Measures the width of the given text according to the widths in the
29       font
30
31   $t->trim($text, $len)
32       Trims the given text to the given length (in per mille em) returning
33       the trimmed text
34
35   $t->out_text($text)
36       Indicates to the font that the text is to be output and returns the
37       text to be output
38
39   $f->copy
40       Copies the font object excluding the name, widths and encoding, etc.
41

TITLE

43       Text::PDF::TTIOString - internal IO type handle for string output for
44       font embedding. This code is ripped out of IO::Scalar, to save the
45       direct dependence for so little. See IO::Scalar for details
46
47
48
49perl v5.32.0                      2020-07-28              Text::PDF::TTFont(3)
Impressum