PS_BEGIN_GLYPH(3)

πŸ’– NAME πŸ’–

PS_begin_glyph β€” starts a new glyph in a Type3 font πŸŽ€βœ¨


🌸 SYNOPSIS 🌸

#include <pslib.h>

void PS_begin_glyph(PSDoc *psdoc, const char *glyphname, double wx,
                    double llx, double lly, double urx, double ury)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie so basically PS_begin_glyph opens up a whole new glyph inside a Type3 font. like, it's the opening move πŸ’…

and the glyph itself? you actually draw it with a subset of the regular drawing functions β€” think PS_lineto(3) and friends. so you're like, hand-crafting the lil shape yourself. iconic tbh 🫢

the glyphname is arbitrary β€” you can literally call it whatever β€” but fr fr, it's usually something you'll find in the input encoding vector, so that PS_show(3) can actually reach it later. no cap.

then the floating point parameters? those describe the width plus the lower left and upper right corner of the bounding box that wraps around your glyph. it's giving "here's exactly where my baby lives on the page" πŸ“¦βœ¨

⚠️ IMPORTANT ⚠️ β€” every single call of PS_begin_glyph must be accompanied by a call to PS_end_glyph(3). like, they're a package deal. don't leave it hanging, that's so rude 😭

PS_begin_glyph has been introduced in version 0.4.0 of pslib. throwback era ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

  • PS_end_glyph(3)
  • PS_begin_font(3)
  • PS_end_font(3)

🌈 AUTHOR 🌈

this manual page was written by Uwe Steinmann uwe@steinmann.cx. ty bestie for the docs πŸ«ΆπŸ’œ


and that's the whole vibe check on PS_BEGIN_GLYPH(3) from the Library Functions Manual πŸ’– go forth and draw ur glyphs, main character πŸ§šβœ¨πŸ’…

πŸ“¦ where this page comes from