aboutsummaryrefslogtreecommitdiff
path: root/font.c
blob: 035d33076fa49b077765eead8c2b680b73286f12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* font.c - the embedded font table. */
#include "font.h"

/* Public-domain 8x8 VGA font by Daniel Hepper / Marcel Sondaar / IBM.
 * Vendored verbatim; included here only, so the table has one definition. */
#include "font8x8_basic.h"

static const unsigned char blank[FONT_H] = { 0 };

const unsigned char *font_glyph(char c)
{
	unsigned char u = (unsigned char)c;
	if (u >= 128)
		return blank;
	return (const unsigned char *)font8x8_basic[u];
}