Font::TTF::PSNames(3)
π NAME π
Font::TTF::PSNames β utilities for Postscript glyph name processing. hiii bestie π you're reading the Font::TTF::PSNames(3) manual page from the User Contributed Perl Documentation, and it's literally all about Postscript glyph name processing. niche? yes. iconic? also yes. π¦
β¨ SYNOPSIS β¨
okay so here's the whole vibe check:
use Font::TTF::PSNames qw(parse lookup);
$name = lookup($uni);
$uni = parse($name);
π METHODS π
two methods, both main character energy. let's get into it π«Ά
π lookup
lookup ( $usv [, $noAlt [, $noUni] ])
this one returns the Adobe-recommended glyph name for a specific Unicode codepoint (integer). By default it returns "uniXXXX" names rather than "afiiNNNNN" or "SFnnnnnn" names. no cap, that default matters π
- If
$noAltis true,"afii"and"SF"names are returned rather than"uniXXXX". - if
$noUniis true, returnsundefif it would have to resort to"uniXXXX"or"uXXXXXX"style names. Essentially this represents a straight lookup in the Adobe-recommended list. fr fr, it's the no-fallback zone π
π§ parse
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. slay, that's the whole breakdown β¨
π 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.
mwah π that's the whole page, bestie β brought to you by perl v5.42.0, dated 2016-08-28. now go process some glyph names, periodt β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Font-TTF 1.06-bp160.1.12 Β· Artistic-2.0 and OFL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms