S3D_SELECT_FONT(3)
π S3D_SELECT_FONT β it's giving font selection, bestie π
okay so this is page 3 of the s3d manual (yes, section 3, we love a library call), and today's main character is s3d_select_font. let's get into it β¨
πΈ NAME πΈ
s3d_select_font β select font π
like. that's the whole job. it picks a font. slay.
β¨ SYNOPSIS β¨
#include <s3d.h>
int s3d_select_font(const char *mask);
so you pull in <s3d.h>, and then you've got this lil function that takes a const char *mask and hands you back an int. cute. efficient. we stan π«Ά
π¦ DESCRIPTION π¦
bestie listen. this function selects a font for the s3d_draw_string() function. that's it. that's the vibe. you give it a mask, and whichever font face matches becomes the one that s3d_draw_string() is gonna use. no cap. π
β οΈ Warning β οΈ Of course, you won't forget to toggle it visible, won't you? π
like. the font is selected. the font is not automatically visible. that part is on you, bestie. do not come crying to me when your gorgeous little text doesn't show up because you skipped the visible toggle. i'm just the messenger π
and here's the example, exactly as it lives:
s3d_select_font("vera"); // will use the vera font face
so "vera" gets you the vera font face. iconic. that's the demo. periodt.
π AUTHOR π
Simon Wunderlich β Author of s3d π
absolute legend, we love them, thank you for the library fr fr π
π the sign-off π
this whole thing comes to you from the s3d manual, and the footer is just... s3d β no date, no version number, nothing extra, and honestly? mysterious. enigmatic. main character energy. iykyk π
go forth and draw your little strings, and remember the visibility toggle. mwah ππ
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms