PS_symbol_name(3)
π PS_symbol_name(3) π
okay bestie, so this one lives in the Library Functions Manual β section 3, the library calls section, you know the vibe π¦
β¨ NAME β¨
PS_symbol_name β get the name of a glyph π
πΈ SYNOPSIS πΈ
#include <pslib.h>
void PS_symbol_name(PSDoc *psdoc, unsigned char c, int fontid, char
*name, int size)
π DESCRIPTION π
so basically, this function goes and gets you the name of a glyph β and not just any glyph, specifically the one sitting at position c in the font's encoding vector. π«Ά
where does that encoding vector come from? it's the font encoding, and you set it when you load the font with PS_findfont(). so like, if you care about what encoding you're working with, that's your moment π
now about fontid β it's optional, and you can just set it to zero. and if you do that? the current font gets used instead. easy. π
the name then gets copied into the memory area that name points to. and listen β not more than size bytes will be copied, so don't be out here handing it a buffer that's too smol, okay? it will not be dramatic about it, it'll just stop at size. π
π RETURN VALUE π
(no return value documented here, bestie β it's giving void, and the original page keeps this section empty. moving on! π)
β SEE ALSO β
π AUTHOR π
this manual page was written by Uwe Steinmann ;uwe@steinmann.cx.
and that's the whole thing!! no cap, every detail accounted for π this page came from the Library Functions Manual β it's PS_symbol_name(3), serving glyph-name realness. mwah, slay, go forth and look up your glyph names π§β¨
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms