1Prima::PS::Encodings(3)User Contributed Perl DocumentatioPnrima::PS::Encodings(3)
2
3
4
6 Prima::PS::Encodings - manage latin-based encodings
7
9 use Prima::PS::Encodings;
10
12 This module provides code tables for major latin-based encodings, for
13 the glyphs that usually provided by every PS-based printer or
14 interpreter. Prima::PS::Drawable uses these encodings when it decides
15 whether the document have to be supplied with a bitmap character glyph
16 or a character index, thus relying on PS interpreter capabilities.
17 Latter is obviously preferable, but as it's not possible to know
18 beforehand what glyphs are supported by PS interpreter, the Latin glyph
19 set was selected as a ground level.
20
21 exists $encoding
22 Returns whether $encoding exists in the list of internal list of
23 recognized names
24
25 files
26 It's unlikely that users will need to supply their own encodings,
27 however this can be accomplished by:
28
29 use Prima::PS::Encodings;
30 $Prima::PS::Encodings::files{iso8859-5} = 'PS/locale/greek-iso';
31
32 fontspecific
33 The only non-latin encoding currently present is 'Specific'. If
34 any other specific-encoded fonts are to be added, the encoding
35 string must be added as a key to %fontspecific
36
37 load
38 Loads encoding file by given string. Tries to be smart to guess
39 actual file from identifier string returned from setlocale(NULL).
40 If fails, loads default encoding, which defines only glyphs from 32
41 to 126. Special case is 'null' encoding, returns array of 256
42 .notdef's.
43
44 unique
45 Returns list of Latin-based encoding string unique keys.
46
47
48
49perl v5.28.1 2019-02-02 Prima::PS::Encodings(3)