|
|
|
|
|
|
280
|
}
|
280
|
}
|
|
281
|
defer c.TTF_Quit();
|
281
|
defer c.TTF_Quit();
|
|
282
|
|
282
|
|
|
283
|
var font_file = if (args.len > 1) args[1] else "./FantasqueSansMono-Regular.ttf";
|
|
|
|
|
|
283
|
var font_file = if (args.len > 1) args[1] else "/usr/share/fonts/TTF/FantasqueSansMono-Regular.ttf";
|
|
284
|
const font = c.TTF_OpenFont(font_file, 16) orelse {
|
284
|
const font = c.TTF_OpenFont(font_file, 16) orelse {
|
|
285
|
c.SDL_Log("Unable to load font: %s", c.TTF_GetError());
|
285
|
c.SDL_Log("Unable to load font: %s", c.TTF_GetError());
|
|
286
|
return error.TTFInitializationFailed;
|
286
|
return error.TTFInitializationFailed;
|