1PDF::API2::Resource::UnUisFeorntC(o3n)tributed Perl DocuPmDeFn:t:aAtPiIo2n::Resource::UniFont(3)
2
3
4
6 PDF::API2::Resource::UniFont - Unicode Font Support
7
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 1, 3, # register font for blocks 1 and 3
24 [1, 3], # register font for blocks 1 .. 3
25 ]
26
27 CODESPECS:
28
29 [
30 1, 3, # register font for codepoints 1 and 3
31 [1, 3], # register font for codepoints 1 .. 3
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.34.0 2021-08-02 PDF::API2::Resource::UniFont(3)