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