1Font::TTF::PSNames(3) User Contributed Perl DocumentationFont::TTF::PSNames(3)
2
3
4

NAME

6       Font::TTF::PSNames - Utilities for Postscript glyph name processing
7

SYNOPSIS

9         use Font::TTF::PSNames qw(parse lookup);
10         $name = lookup($uni);
11         $uni = parse($name);
12

METHODS

14       lookup ( $usv [, $noAlt [, $noUni] ])
15
16       return the Adobe-recommended glyph name for a specific Unicode code‐
17       point (integer). By default returns "uniXXXX" names rather than "afi‐
18       iNNNNN" or "SFnnnnnn" names
19
20       If $noAlt is true, "afii" and "SF" names are returned rather than
21       "uniXXXX".
22
23       if $noUni is true, returns undef if it would have to resort to
24       "uniXXXX" or "uXXXXXX" style names. Essentially this represents a
25       straight lookup in the Adobe-recommended list.
26
27       parse ( $glyphname )
28
29       Parse an Adobe-conformant glyph name, generating a Unicode codepoint
30       sequence equivalent to the glyph (or glyph components, should the name
31       represent a ligature). In scalar context, returns a reference to an
32       array of Unicodes (decimal). Array is empty if the glyph name is
33       non-conformant.  In list context, the first item returned is the same
34       array reference as above. The second item is a reference to an array
35       containing the extensions (if any) present on the glyph name.  The '.'
36       that precedes each extension is not included.
37

AUTHOR

39       Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright
40       and licensing.
41
42
43
44perl v5.8.8                       2005-06-14             Font::TTF::PSNames(3)
Impressum