PS_GLYPH_LIST(3)

✨ PS_GLYPH_LIST ✨

okay bestie, welcome to the pslib library functions manual, section 3 πŸ’… this one's about PS_glyph_list, and it's genuinely so useful, no cap 🫢


🌸 NAME 🌸

PS_glyph_list β€” returns the list of glyph names in a font πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pslib.h>

char ** PS_glyph_list(PSDoc *psdoc, int fontid, char ***glyphlist, int *len)

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: PS_glyph_list hands you back the list of glyph names that are chillin' in the current font, or in the font you point at with fontid πŸ‘‘

and like, the way it works β€” the function allocates the memory for that array of glyph names itself, which means it's your job (well, the calling application's job) to free it later using PS_free_glyph_list(3). don't ghost that memory bestie, that's a leak 😭

the list has len entries, and it comes in no particular order β€” so don't go expecting alphabetical, it's giving chaos and we respect it πŸ¦‹βœ¨

🌈 fun fact: PS_glyph_list has been in the game since version 0.4.0 of pslib. iconic behavior honestly.

πŸ‘€ SEE ALSO πŸ‘€


πŸ’œ AUTHOR πŸ’œ

this manual page was written by Uwe Steinmann β€” uwe@steinmann.cx 🫢 ty king


and that's the whole page bestie!! this was the PS_GLYPH_LIST(3) entry from the pslib Library Functions Manual β€” section 3, library functions, we love her πŸŒˆπŸŽ€ go free your glyph lists and slay πŸ’…βœ¨

πŸ“¦ where this page comes from