1PDF::Builder::Resource:U:sFeorntC:o:nStyrniFbountte(d3P)PDeFr:l:BDuoicludmeern:t:aRteisoonurce::Font::SynFont(3)
2
3
4

NAME

6       PDF::Builder::Resource::Font::SynFont - Module for using synthetic
7       Fonts.
8

SYNOPSIS

10           #
11           use PDF::Builder;
12           #
13           $pdf = PDF::Builder->new();
14           $cft = $pdf->corefont('Times-Roman');  # ttfont, etc. also works
15           $sft = $pdf->synfont($cft, -condense => .75);  # condense by 25%
16           #
17
18       This works for corefonts, PS fonts, and TTF/OTF fonts; but does not
19       work for CJK fonts or bitmapped fonts.  See also "Synthetic Fonts" in
20       PDF::Builder::Docs.
21

METHODS

23       $font = PDF::Builder::Resource::Font::SynFont->new($pdf, $fontobj,
24       %options)
25           Returns a synfont object.
26
27           Valid %options are:
28
29           -encode ... changes the encoding of the font from its default.  See
30           Perl's Encode for the supported values. Warning: only single byte
31           encodings are supported. Multibyte encodings such as UTF-8 are
32           invalid.
33
34           -pdfname ... changes the reference-name of the font from its
35           default.  The reference-name is normally generated automatically
36           and can be retrieved via $pdfname=$font->name().
37
38           -condense ... condense/expand factor (0.1-0.9 = condense, 1 =
39           normal, 1.1+ = expand).  It's the multiplier for character widths
40           vs. normal.
41
42           -oblique ... italic angle (+/-) in degrees, where the character box
43           is skewed. While it's unlikely that anyone will want to slant
44           characters at +/-360 degrees, they should be aware that these will
45           be treated as an angle of 0 degrees (deg2rad() wraps around). 0
46           degrees of italic slant (obliqueness) is the default.
47
48           -bold ... embolding factor (0.1+, bold=1, heavy=2, ...). It is
49           additional outline thickness (linewidth), which expands the
50           character outwards.
51
52           -space ... additional charspacing in em (0-1000).
53
54           -caps ... create synthetic small-caps. 0 = no, 1 = yes. These are
55           capitals of lowercase letters, at 80% height and 88% width.
56
57
58
59perl v5.32.1                      2021-P0D3F-:2:9Builder::Resource::Font::SynFont(3)
Impressum