const pdapi = @import("playdate_api_definitions.zig"); const g_font_path = "assets/fonts/Roobert-10-Bold.pft"; pub var g_font: *pdapi.LCDFont = undefined; pub fn initializeFonts(pd: *pdapi.PlaydateAPI) void { // Load the font const font = pd.graphics.loadFont(g_font_path, null); if (font) |f| { pd.graphics.setFont(f); g_font = f; pd.system.logToConsole("Custom Roobert font loaded successfully"); } else { pd.system.logToConsole("Failed to load custom font, using system default"); } }