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