1Font::TTF::PSNames(3) User Contributed Perl DocumentationFont::TTF::PSNames(3)
2
3
4
6 Font::TTF::PSNames - Utilities for Postscript glyph name processing
7
9 use Font::TTF::PSNames qw(parse lookup);
10 $name = lookup($uni);
11 $uni = parse($name);
12
14 lookup ( $usv [, $noAlt [, $noUni] ])
15 return the Adobe-recommended glyph name for a specific Unicode
16 codepoint (integer). By default returns "uniXXXX" names rather than
17 "afiiNNNNN" or "SFnnnnnn" names
18
19 If $noAlt is true, "afii" and "SF" names are returned rather than
20 "uniXXXX".
21
22 if $noUni is true, returns undef if it would have to resort to
23 "uniXXXX" or "uXXXXXX" style names. Essentially this represents a
24 straight lookup in the Adobe-recommended list.
25
26 parse ( $glyphname )
27 Parse an Adobe-conformant glyph name, generating a Unicode codepoint
28 sequence equivalent to the glyph (or glyph components, should the name
29 represent a ligature). In scalar context, returns a reference to an
30 array of Unicodes (decimal). Array is empty if the glyph name is non-
31 conformant. In list context, the first item returned is the same array
32 reference as above. The second item is a reference to an array
33 containing the extensions (if any) present on the glyph name. The '.'
34 that precedes each extension is not included.
35
37 Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
38 and licensing.
39
40
41
42perl v5.16.3 2011-10-13 Font::TTF::PSNames(3)