A Bluesky Playdate client
at main 19 lines 545 B view raw
1const pdapi = @import("playdate_api_definitions.zig"); 2 3const g_font_path = "assets/fonts/Roobert-10-Bold.pft"; 4 5pub var g_font: *pdapi.LCDFont = undefined; 6 7pub fn initializeFonts(pd: *pdapi.PlaydateAPI) void { 8 9 // Load the font 10 const font = pd.graphics.loadFont(g_font_path, null); 11 12 if (font) |f| { 13 pd.graphics.setFont(f); 14 g_font = f; 15 pd.system.logToConsole("Custom Roobert font loaded successfully"); 16 } else { 17 pd.system.logToConsole("Failed to load custom font, using system default"); 18 } 19}