PS_symbol_width(3)
β¨ PS_symbol_width(3) β¨
okay bestie, so this one is PS_symbol_width, and it lives in the Library Functions Manual β section 3, the "yes these are library functions" section π . Her whole entire job? Telling you how wide a glyph is. That's it. That's the girl. π
πΈ NAME πΈ
PS_symbol_width β get the width of a glyph π¦
π SYNOPSIS π
#include <pslib.h>
float PS_symbol_width(PSDoc *psdoc, unsigned char c, int fontid, float size)
π DESCRIPTION π
So basically, this function goes and retrieves the width of a glyph β and that glyph is sitting at position c in the font encoding vector. π
Now, the font encoding for a font? You can set that when you're loading the font with PS_findfont(). iykyk. β¨
And here's the cute part: fontid and size are optional, bestie. You can literally just set them to zero π«Ά and in such a case the current font and current size will be used. no cap. lowkey iconic behaviour honestly.
β RETURN VALUE β
The width of the symbol in points. that's the whole vibe. πβ¨
π¦ SEE ALSO π¦
go read those too, they're a whole friend group π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. π giving main character energy fr fr.
and that's the tea, bestie π β this was PS_symbol_width(3) from the Library Functions Manual, and yeah, the footer is literally just her name again: PS_symbol_width(3). slay. π
πΈβ¨
π¦ 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