PS_SET_VALUE(3)

πŸ’– PS_SET_VALUE(3) πŸ’–

okay bestie, welcome to the PS_SET_VALUE(3) page, straight out of the Library Functions Manual ✨ this is the one where you poke little floaty numbers into a PostScript document and everything downstream goes "oh bet" 🫢


✨ NAME ✨

PS_set_value β€” sets certain values πŸ’…


🌸 SYNOPSIS 🌸

#include <pslib.h>

int PS_set_value(PSDoc *psdoc, char *name, float value)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• this function sets several values that a whole bunch of other functions rely on. and the vibe check on the parameters? they're float values, by definition. that's just how it is. no cap πŸŽ€

here's the full list of values you can set, bestie, every single one:

  • textrendering β€” the way text gets shown πŸ‘‘ like, how it renders. that's the whole thing.
  • textx β€” the x coordinate for text output πŸ“
  • texty β€” the y coordinate for text output πŸ“ (yes, its sibling. they're a package deal fr fr)
  • wordspacing β€” the distance between words, measured relative to the width of a space 🌈
  • leading β€” the distance between lines, in pixels πŸ“

πŸ’œ SEE ALSO πŸ’œ

go read those too, iykyk 🧚


πŸŽ€ AUTHOR πŸŽ€

this manual page was written by Uwe Steinmann uwe@steinmann.cx β€” credit where credit is due, periodt πŸ‘‘


lowkey the whole point: it's a setter. it sets values. it returns an int. that's the arc. πŸ’€

okay that's the whole page bestie!! πŸ“ this was PS_SET_VALUE(3) from the Library Functions Manual, and that's a wrap β€” mwah, slay, go set some values πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from