From e55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 7 Oct 2026 21:43:38 +0200 Subject: feat: tty and ttf, you'd think somethn starting with tt would be fun to do... --- boot/fonts.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 boot/fonts.zig (limited to 'boot/fonts.zig') 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") }, +}; -- cgit v1.3