-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfonts.c
More file actions
38 lines (33 loc) · 1.06 KB
/
Copy pathfonts.c
File metadata and controls
38 lines (33 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* fonts.c — Font registry: wraps the VGA bitmap data in an fbFont
* descriptor, and provides the global fbFontList[] array.
*
* Copyright (c) 2026 Richard Kelly Wiles (rkwiles@twc.com)
*/
#include "fonts.h"
#include <stddef.h> /* NULL */
#include "font8x16.h" /* _fbFont[256][16] — the raw VGA data */
/* ─── VGA descriptor (wraps the existing font8x16 data) ─────────── */
const fbFont fbVga = {
.name = "VGA8x16",
.w = 8,
.h = 16,
.data = _fbFont,
};
/* ─── Font list ──────────────────────────────────────────────────── */
/* Defined in their respective font_*.c files */
extern const fbFont fbBold8;
extern const fbFont fbThin5;
extern const fbFont fbNarrow6;
extern const fbFont fbBlock8;
extern const fbFont fbLcd7;
const fbFont * const fbFontList[] = {
&fbVga,
&fbBold8,
&fbThin5,
&fbNarrow6,
&fbBlock8,
&fbLcd7,
NULL,
};
const int fbFontCount = 6;