Something went wrong. Try again.
A Zig library that finds fonts as fontconfig does, without it: the same configuration, OpenType and bitmap fonts, and the same answers.
Something went wrong. Try again.
zig-font-config build.zig.zon
1.6 kB · 41 lines
at main
123456789101112131415161718192021222324252627282930313233343536373839404142// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
.{ .name = .font_config, .version = "0.1.0", .fingerprint = 0xff6460b71f9b31fa, // Changing this has security and trust implications. .minimum_zig_version = "0.17.0", .dependencies = .{ .zxml = .{ .url = "git+https://git.jcollie.dev/jeff/zxml.git#956b354864b3b50347d921eef27419529850346a", .hash = "zxml-0.2.0-JUQ_3VnJAwDYZssSsJKNSVZZd02dliNj2N9LJwBfadsp", }, .fontconfig = .{ .url = "https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/2.18.3/fontconfig-2.18.3.tar.gz", .hash = "N-V-__8AAKGDMADeS_f-iAyhuZkCNMel8tgu58hjBkKv-7lm", .lazy = true, }, .charset = .{ .url = "git+https://git.jcollie.dev/jeff/zig-charset.git?ref=v0.3.1#e074fe74f11efff7e8b3b10cc4aa90a7790e4a66", .hash = "charset-0.3.1-vwxVhb4zIQAi5feT1iIELLkmETGObXKMSi6kbbRcbRLI", }, .known_folders = .{ .url = "git+https://github.com/ziglibs/known-folders.git#6da0d0c41b78b9ed2d34fa364fcb81b5ebece6c4", .hash = "known_folders-0.0.0-Fy-PJiDLAAB98m3uYUzatrTb2mO2fpvwx2zpSroEtfbO", }, .font = .{ .url = "git+https://git.jcollie.dev/jeff/zig-font.git#3316062247c1b4e20f4232957ba67b3533042a07", .hash = "font-0.1.0-zFsL_hU8FABw5dKOH1Nkzx2Uy1hGQ1whq4wCOUD-oKUd", }, }, .paths = .{ "build.zig", "build.zig.zon", "src", "tests", "tools", "README.md", "LICENSES", },}