No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nnra6864 89fc903312 chore: Builds on kosm's theme built from one input
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 12:48:23 +01:00
.gitignore chore: Ignore build output 2026-11-11 00:16:28 +01:00
App.zig chore: Builds on kosm's theme built from one input 2026-11-12 12:48:23 +01:00
build.zig feat: Fontconfig's generic families prefer the kosmos' fonts in fallback order 2026-11-11 00:16:28 +01:00
build.zig.zon chore: Builds on kosm's theme built from one input 2026-11-12 12:48:23 +01:00
README.md feat: Fontconfig's generic families prefer the kosmos' fonts in fallback order 2026-11-11 00:16:28 +01:00
root.zig feat: Fontconfig's generic families prefer the kosmos' fonts in fallback order 2026-11-11 00:16:28 +01:00

kosm_fontconfig

Fontconfig for kosm: the fonts the generic families sans-serif, serif and monospace resolve to, each a list in fallback order. Every program asking fontconfig for a generic family (kitty, GTK and Qt apps, browsers showing pages in your fonts) then gets the kosmos' fonts.

The app writes one file whole, ~/.config/fontconfig/conf.d/50-kosm.conf, which fontconfig reads through the system's 50-user.conf. Your own fonts.conf stays yours; fontconfig reads conf.d first, so the kosmos' fonts come before any family fonts.conf also prefers.

var fonts = kosm_fontconfig.from(theme);
fonts.monospace = &.{ "Maple Mono Normal NFP", "Noto Color Emoji" };

Fields

Field Default
file ~/.config/fontconfig/conf.d/50-kosm.conf; its name must start with a digit and end in .conf
sans_serif null: not written, fontconfig's own
serif null: not written, fontconfig's own
monospace null: not written, fontconfig's own
binding .strong: the listed fonts win over the system's family rules and language matching. .weak is fontconfig's default, under which a distribution's rules (Noto's, for one) can pass over a listed font

from sets nothing, since the theme holds no fonts.

After an apply, programs already running may keep the old fonts until restarted.