diff --git a/src/main.zig b/src/main.zig index 6e574b0..79eb810 100644 --- a/src/main.zig +++ b/src/main.zig @@ -5,6 +5,8 @@ const home = @import("home.zig"); const departure = @import("departure.zig"); const AppState = @import("state.zig"); +const noto = @embedFile("./noto.ttf"); + pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; const allocator = gpa.allocator(); @@ -25,7 +27,7 @@ pub fn main() !void { var station_id_buffer: [10]u8 = .{0} ** 10; var appState = AppState{ .allocator = allocator, - .font = rl.LoadFontEx("./noto.ttf", 64, cp, cp_cnt), + .font = rl.LoadFontFromMemory(".ttf", noto, noto.len, 64, cp, cp_cnt), .db_font = raylib.LoadFontEx("./private/db.ttf", 64, cp, cp_cnt), .ns_font = raylib.LoadFontEx("./private/ns.ttf", 64, cp, cp_cnt), .home_screen_state = .{ diff --git a/noto.ttf b/src/noto.ttf similarity index 100% rename from noto.ttf rename to src/noto.ttf