font_glyph_rotate_180(9)
β¨ font_glyph_rotate_180 π
okay bestie, welcome to font_glyph_rotate_180(9) from the Kernel API Manual β yes literally the same name, she's iconic and she's not changing it for anyone π this is the function that flips your glyph all the way around like it just heard the best gossip and needs to look π
πΈ NAME πΈ
font_glyph_rotate_180 β Rotate a glyph pattern by 180Β° π¦
no cap, that's the whole gig: 180 degrees, half a full spin, the full glow-up in reverse π
π SYNOPSIS π
void font_glyph_rotate_180 (const unsigned char *glyph , unsigned int
width , unsigned int height , unsigned char *out );
look at her go, she takes absolutely zero shortcuts and returns exactly nothing (it's void, she's mysterious like that β¨). Keep the const on glyph β she's not gonna touch your input, periodt.
π ARGUMENTS π
glyphβ The glyph to rotate π that's your input bitmap, the main character.widthβ The glyph width in bits per scanline π§ yes, bits, not bytes, read it again bestie.heightβ The number of scanlines in the glyph πΈ that's the vertical situation, count them all.outβ The rotated glyph bitmap β this is where the 180Β°-flipped result lands.
π₯ DESCRIPTION π₯
so here's the vibe check: width and height describe the input glyph you passed in as glyph. they're the dimensions of what goes in, not what comes out π (the shape doesn't change size when you spin it, it's giving same-size-different-orientation energy, but fr fr just remember those params belong to glyph).
and the important part, do not skip this:
The caller has to provide the output buffer out of sufficient size to hold the rotated glyph. like, you bring the buffer, she just writes into it π nobody's allocating for you, this is not a charity, mwah π
π«Ά SEE ALSO π«Ά
- Kernel file
./lib/fonts/font_rotate.cπ font_glyph_rotate_90(9)β the quarter-turn sister πfont_glyph_rotate_270(9)β the three-quarter-turn sister πͺοΈfont_data_rotate(9)β the general-purpose rotation bestie π
go read those too, they all hang out in the same file and they're all slay in their own way π
and that's the whole page, bestie π this one came from ./lib/fonts, dated October 2026, and she answers to the name font_glyph_rotate_180(9) β now go rotate something 180 degrees and make it look incredible πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms