Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Font::TTF::PSNames

Name Font::TTF::PSNames
Version
Located at /usr/local/share/perl5
File /usr/local/share/perl5/Font/TTF/PSNames.pm
Is Core No
Search CPAN for this module Font::TTF::PSNames
Documentation Font::TTF::PSNames
Module Details Font::TTF::PSNames

NAME

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


SYNOPSIS

  use Font::TTF::PSNames qw(parse lookup);
  $name = lookup($uni);
  $uni = parse($name);


METHODS

lookup ( $usv [, $noAlt [, $noUni] ])

return the Adobe-recommended glyph name for a specific Unicode codepoint (integer). By default returns uniXXXX names rather than afiiNNNNN or SFnnnnnn names

If $noAlt is true, afii and SF names are returned rather than uniXXXX.

if $noUni is true, returns undef if it would have to resort to uniXXXX or uXXXXXX style names. Essentially this represents a straight lookup in the Adobe-recommended list.

parse ( $glyphname )

Parse an Adobe-conformant glyph name, generating a Unicode codepoint sequence equivalent to the glyph (or glyph components, should the name represent a ligature). In scalar context, returns a reference to an array of Unicodes (decimal). Array is empty if the glyph name is non-conformant. In list context, the first item returned is the same array reference as above. The second item is a reference to an array containing the extensions (if any) present on the glyph name. The '.' that precedes each extension is not included.


AUTHOR

Martin Hosken http://scripts.sil.org/FontUtils.


LICENSING

Copyright (c) 1998-2016, SIL International (http://www.sil.org)

This module is released under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024