1PDF::API2::Resource::UnUisFeorntC(o3n)tributed Perl DocuPmDeFn:t:aAtPiIo2n::Resource::UniFont(3)
2
3
4

NAME

6       PDF::API2::Resource::UniFont - Unicode Font Support
7

METHODS

9       $font = PDF::API2::Resource::UniFont->new $pdf, @fontspecs, %options
10           Returns a uni-font object.
11
12           FONTSPECS: fonts can be registered using the following hash-ref:
13
14               {
15                   font   => $fontobj,     # the font to be registered
16                   blocks => $blockspec,   # the unicode blocks, the font is being registered for
17                   codes  => $codespec,    # the unicode codepoints, -"-
18               }
19
20           BLOCKSPECS:
21
22               [
23                   $block1, $block3,    # register font for block 1 + 3
24                   [$blockA,$blockZ],   # register font for blocks A .. Z
25               ]
26
27           CODESPECS:
28
29               [
30                   $cp1, $cp3,          # register font for codepoint 1 + 3
31                   [$cpA,$cpZ],         # register font for codepoints A .. Z
32               ]
33
34           NOTE: if you want to register a font for the entire unicode space
35           (ie. U+0000 .. U+FFFF), then simply specify a font-object without
36           the hash-ref.
37
38           Valid %options are:
39
40             '-encode' ... changes the encoding of the font from its default.
41               (see "perldoc Encode" for a list of valid tags)
42
43
44
45perl v5.28.0                      2017-07-07   PDF::API2::Resource::UniFont(3)
Impressum