Skip to content
convert bdf font to wscons header
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README
Setup.hs
bdf2wscons.cabal
main.hs

README

install: cabal install
usage: bdf2wscons font.bdf > font.h

then add it to src/sys/dev/wsfont/wsfont.c like this:

	#ifdef FONT_<NAME><YOURxSIZE>
	#define HAVE_FONT 1
	#include "path/to/include"
	#endif

	/* Our list of built-in fonts */
	static struct font *list, builtin_fonts[] = {
	#ifdef FONT_<NAME><YOURxSIZE>
		{ NULL, NULL, &<NAME><SIZE>, 0, 1, WSFONT_STATIC | WSFONT_BUILTIN  },
	#endif
		...


KNOWN ISSUES
------------
Fonts with a lof of characters wont work on recent (2015) OpenBSD. Limit them to 256 characters.
You can’t perform that action at this time.