PS_ADD_LIGATURE(3)

πŸ’– PS_ADD_LIGATURE πŸ’–

okay so bestie, this is a section 3 page from the Library Functions Manual β€” it's PS_add_ligature, and yes we're about to make letters hold hands. 🫢


✨ NAME ✨

PS_add_ligature β€” add a new ligature to a font, slay πŸ’…


🌸 SYNOPSIS 🌸

#include <pslib.h>

void PS_add_ligature(PSDoc *psdoc, int fontid, const char *glyphname1,
const char *glyphname2, const char *glyphname3)

like… three glyph names. three. it's giving a little trio, a lil friend group, and they're about to become ONE (1) ligature. iconic. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

So what this does is add a new ligature to a font that's already loaded. Not a fresh font, not a baby font β€” an already-loaded one, okay? the font has to already be in the building. πŸ‘‘

And listen, this function was mainly provided so you can add ligatures to Type3 fonts created with PS_begin_font(3) β€” that's its whole main character moment. But it's not exclusive, no gatekeeping here: you can also use it on fonts loaded with PS_findfont(3). so versatile, we love range. 🌈

ngl, PS_add_ligature has been around since version 0.4.0 of pslib. it's been doing this since 0.4.0, fr fr. vintage. a classic. πŸŽ€


πŸ‘€ SEE ALSO πŸ‘€

  • PS_add_kerning(3) β€” its sibling, its partner in crime, go read it too bestie πŸ’œ

πŸŽ€ AUTHOR πŸŽ€

This manual page was written by Uwe Steinmann <uwe@steinmann.cx>. thank you for the lore, legend 🫢


and that's the whole page!! πŸ’– it lives in the Library Functions Manual under the name PS_add_ligature(3) β€” and the footer is just the page name again, PS_ADD_LIGATURE(3), no extra date or version to report, so consider this your cute lil sign-off. go forth and ligate, bestie. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from