font_glyph_pitch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 width is 14 bytes per scanline, the pitch is 2 bytes per scanline.
  • If width is 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 πŸ”₯


xoxo, bestie πŸ’‹ β€” source/version ./include/linux, date October 2026, page font_glyph_pitch(9) 🌈

πŸ“¦ where this page comes from