Add CONTRIBUTING.md
README: Small fixes
Font.name may be null
Idiomatic zig bindings for fcft.
See the example repo for a more complete help.
build.zig
example:
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
const target = b.standardTargetOptions(.{});
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("foo", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
const pixman = std.build.Pkg{
.name = "pixman",
.path = .{ .path = "deps/zig-pixman/pixman.zig" },
};
exe.addPackage(pixman);
exe.linkSystemLibrary("pixman-1");
const fcft = std.build.Pkg{
.name = "fcft",
.path = .{ .path = "deps/zig-fcft/fcft.zig" },
.dependencies = &[_]std.build.Pkg{pixman},
};
exe.addPackage(fcft);
exe.linkSystemLibrary("fcft");
exe.install();
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
}
See CONTRIBUTING.md
Started with a fork of https://git.sr.ht/~andreafeletto/zig-fcft
zig-fcft is licensed under the MIT license.