disable image-based font generation
This commit is contained in:
parent
b05ac7bae7
commit
25e410c0b5
|
@ -56,12 +56,8 @@ pub fn build(b: *std.build.Builder) !void {
|
||||||
exe_fontgen.linkLibrary(z_dep.artifact("z"));
|
exe_fontgen.linkLibrary(z_dep.artifact("z"));
|
||||||
exe.step.dependOn(&exe_fontgen.run().step);
|
exe.step.dependOn(&exe_fontgen.run().step);
|
||||||
|
|
||||||
// TODO: I believe we can use runArtifact on a second
|
// If image based characters are needed, uncomment this
|
||||||
// exe with a different source file for font generation
|
// exe.step.dependOn(&AsciiPrintableStep.create(b, .{ .path = "src/images" }).step);
|
||||||
// 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)));
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = exe.run();
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const display = @import("display.zig");
|
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 fonts = @import("fonts/fonts.zig");
|
||||||
const unpackBits = @import("fontgen.zig").unpackBits;
|
const unpackBits = @import("fontgen.zig").unpackBits;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user