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_fonthas been introduced in version0.4.0of 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
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms