Get Mystery Box with random crypto!

wsfont - hanging the default NetBSD console font. The default | NetBSD

wsfont - hanging the default NetBSD console font.

The default built-in font, Boldface, which is loaded at boot-time on a framebuffer (whether genfb or DRM) console is too small as it is 8x16. The other font built into the kernel is Boldface 16x32, and this, if you load it, will give you a console approximating a 80x25 screen--ie. this font is too large.

The solution that is usually advocated to get a reasonable-size font is to a) edit the kernel config, b) add one of the fonts in /usr/src/sys/dev/wsfont/ using directives like options FONT_SPLEEN16x32, and c) then recompile the kernel. But, this is a pain. Simpler to write a program to suck in the fonts and load them into the kernel as needed. This is what the code below does.

https://www.unitedbsd.com/d/311-wsfont-changing-the-default-netbsd-console-font

#fonts #system