1PDF::API2::Resource::UnUisFeorntC(o3n)tributed Perl DocuPmDeFn:t:aAtPiIo2n::Resource::UniFont(3)
2
3
4
6 PDF::API2::Resource::UniFont
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 $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 $font = PDF::API2::Resource::UniFont->new_api $api, $name, %options
44 Returns a uni-font object. This method is different from 'new' that
45 it needs an PDF::API2-object rather than a Text::PDF::File-object.
46
47
48
49perl v5.12.2 2011-01-24 PDF::API2::Resource::UniFont(3)