PS_BEGIN_FONT(3)

πŸ’– NAME πŸ’–

PS_begin_font β€” bestie, it starts a brand new Type3 font ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <pslib.h>

int PS_begin_font(PSDoc *psdoc, const char *fontname, int reserverd,
double a, double b, double c, double d, double e, double f, const char
*optlist)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so, plot twist: PostScript does not have just one kind of font, it has various kinds, and Type3 is the DIY one πŸ’… Type3 fonts are fonts whose glyphs are created with a subset of regular PostScript commands. Like, you're literally hand-building the letters. iconic behaviour honestly.

This function starts a new Type3 font that gets embedded into the document, and it must be closed with PS_end_font. Don't leave it hanging, that's rude 🫢

Each glyph is created with consecutive calls of PS_end_glyph and PS_end_glyph. (no cap, that's exactly what the page says β€” the same function listed twice. I'm not gaslighting you by quietly "fixing" it πŸ’€ iykyk.)

Once the new font is created, it can be used like any other font loaded with PS_findfont. so basically it's a full member of the font family, no side-eye, no special treatment 🌸

The passed floating point numbers are used to set the font matrix. a and d are usually set to 0.001. The remaining numbers can be left zero. yes bestie, zero is a valid vibe for those.

Each call of PS_begin_font must be accompanied by a call to PS_end_pattern(3).

⭐ fun fact for your notes app: PS_begin_font has been introduced in version 0.4.0 of pslib. vintage ✨

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns identifier of the font, or zero in case of an error. The identifier is a positiv number greater 0. (spelled "positiv" in the original and I am respectfully not touching it πŸŽ€)


🌈 SEE ALSO 🌈


πŸ’œ AUTHOR πŸ’œ

This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service 🫑


and that's the whole page, bestie β€” it's PS_BEGIN_FONT(3) from the Library Functions Manual, straight out of the pslib crew, and that's a wrap πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from