diff options
| author | hachem <im@hachem.wtf> | 2026-10-07 21:43:38 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-07 21:43:38 +0200 |
| commit | e55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 (patch) | |
| tree | 0a52300c63a011683ceba1642e6f7c24e4d367ef /boot/fonts.zig | |
| parent | 5d4a723a5f157c0ed38a348099a600d1d21c3c2b (diff) | |
feat: tty and ttf, you'd think somethn starting with tt would be fun to do...
Diffstat (limited to 'boot/fonts.zig')
| -rw-r--r-- | boot/fonts.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/fonts.zig b/boot/fonts.zig new file mode 100644 index 0000000..5db8123 --- /dev/null +++ b/boot/fonts.zig @@ -0,0 +1,11 @@ +// js loading fonts from host disk +pub const Font = struct { name: []const u8, bytes: []const u8 }; +pub const fonts = [_]Font{ + .{ .name = "vga16.psf", .bytes = @embedFile("font_vga16") }, + .{ .name = "vga8.psf", .bytes = @embedFile("font_vga8") }, + .{ .name = "sun16.psf", .bytes = @embedFile("font_sun16") }, + .{ .name = "acorn8.psf", .bytes = @embedFile("font_acorn8") }, + .{ .name = "pearl8.psf", .bytes = @embedFile("font_pearl8") }, + .{ .name = "dejavu.ttf", .bytes = @embedFile("font_dejavu") }, + .{ .name = "terminess.ttf", .bytes = @embedFile("font_terminess") }, +}; |
