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       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

AUTHOR

37       Martin Hosken <http://scripts.sil.org/FontUtils>.
38

LICENSING

40       Copyright (c) 1998-2016, SIL International (http://www.sil.org)
41
42       This module is released under the terms of the Artistic License 2.0.
43       For details, see the full text of the license in the file LICENSE.
44
45
46
47perl v5.36.0                      2022-07-22             Font::TTF::PSNames(3)
Impressum