vc_font_size(9)
π vc_font_size β the kernel API manual, bestie edition β¨
Okay so like, welcome to vc_font_size(9), a page straight out of the Kernel API Manual, and honestly? It's a little baddie of a function. Let's get into it π
β¨ NAME β¨
vc_font_size β literally calculates the size of the font data, in bytes. That's the whole gig. Iconic, lowkey π«Ά
πΈ SYNOPSIS πΈ
unsigned int vc_font_size (const struct vc_font *font );
That's the vibe check right there β takes one const struct vc_font * and hands you back an unsigned int. No cap π
π¦ ARGUMENTS π¦
fontβ The VC font. That's it, that's the argument. She's the main character here π
π DESCRIPTION π
Okay so vc_font_size calculates the number of bytes of font data in the font you specified with, well, font. And like β how does it know? Not me guessing, bestie: the function calculates the size from the font parameters. So it's reading the vibes off the struct itself and doing the math. Slay π§β¨
π₯ RETURN π₯
The size of the font data, in bytes. A number. A gift. Periodt π
β SEE ALSO β
Kernel file ./drivers/tty/vt/vt.c β and like, the whole friend group:
vc_font_pitch(9)vc_do_resize(9)__vc_resize(9)vt_resize(9)enum vc_ctl_state(9)vc_sanitize_unicode(9)vc_translate_unicode(9)vt_kmsg_redirect(9)con_is_bound(9)con_is_visible(9)con_debug_enter(9)con_debug_leave(9)do_unregister_con_driver(9)
π and that's the whole page!! sourced from ./drivers/tty/vt, dated October 2026, vc_font_size(9) forever and always πβ¨π go forth and size those fonts, bestie π«Ά
π¦ 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