disable image-based font generation

This commit is contained in:
Emil Lerch 2023-04-08 17:03:04 -07:00
parent b05ac7bae7
commit 25e410c0b5
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 6 additions and 7 deletions

View File

@ -56,12 +56,8 @@ pub fn build(b: *std.build.Builder) !void {
exe_fontgen.linkLibrary(z_dep.artifact("z"));
exe.step.dependOn(&exe_fontgen.run().step);
// TODO: I believe we can use runArtifact on a second
// exe with a different source file for font generation
// taking us to a series of 5 byte arrays for each
// character in a font.
exe.step.dependOn(&AsciiPrintableStep.create(b, .{ .path = "src/images" }).step);
// exe.step.dependOn((try fontGeneration(b, target)));
// If image based characters are needed, uncomment this
// exe.step.dependOn(&AsciiPrintableStep.create(b, .{ .path = "src/images" }).step);
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {

View File

@ -1,6 +1,9 @@
const std = @import("std");
const display = @import("display.zig");
const chars = @import("images/images.zig").chars;
// Disabling the image characters. To re-enabel, switch the import back and
// adjust build.zig
const chars = &[_][]const u8{""}; //@import("images/images.zig").chars;
const fonts = @import("fonts/fonts.zig");
const unpackBits = @import("fontgen.zig").unpackBits;