font_glyph_pitch(9)
bestie, welcome to font_glyph_pitch(9), straight outta the Kernel API Manual π«Άβ¨ this one is lowkey tiny but highkey useful.
β¨ NAME β¨
font_glyph_pitch β calculates the number of bytes per scanline π«
πΈ SYNOPSIS πΈ
okay so the whole call is giving:
unsigned int font_glyph_pitch (unsigned int width );
π ARGUMENTS π
widthβ the glyph width in bits per scanline. that's the number you hand over, fr fr. π
π DESCRIPTION π
A glyph's pitch is the number of bytes in a single scanline, rounded up to the next full byte. no cap, that's the whole vibe: one scanline, byte-counted, rounded up. β¨
The parameter width receives the number of visible bits per scanline. π
For example:
- If
widthis 14 bytes per scanline, the pitch is 2 bytes per scanline. - If
widthis 8 bits per scanline, the pitch is 1 byte per scanline.
π¦ RETURN π¦
The number of bytes in a single scanline of the glyph. that's the return value, periodt. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/font.h font_glyph_size(9),font_data_t(9),font_data_buf(9)
xoxo, bestie π β source/version ./include/linux, date October 2026, page font_glyph_pitch(9) π
π¦ 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