From 5bc6edf71afe1d9b115af7363e9ffd867f2a6a57 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 1 May 2026 19:24:47 +0200 Subject: build(typst): option to disable embedding fons --- build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.zig b/build.zig index 5c65779..5669a1d 100644 --- a/build.zig +++ b/build.zig @@ -9,6 +9,7 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); const short = b.option(bool, "short", "skip long tests") orelse false; + const no_embed_fonts = b.option(bool, "no-embed-fonts", "dont embed fonts for typst") orelse false; const options = b.addOptions(); options.addOption(bool, "short", short); @@ -19,6 +20,7 @@ pub fn build(b: *std.Build) void { "cargo", "build", }); build_typst.setCwd(b.path(TYPST)); + if (no_embed_fonts) build_typst.addArg("--no-default-features"); switch (optimize) { .ReleaseSmall => { build_typst.addArg("--profile"); -- cgit v1.2.3