summaryrefslogtreecommitdiff
path: root/src/fonts.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/fonts.zig')
-rw-r--r--src/fonts.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fonts.zig b/src/fonts.zig
index e4744daf..1e82956e 100644
--- a/src/fonts.zig
+++ b/src/fonts.zig
@@ -70,6 +70,17 @@ pub const Font = struct { name: []const u8, path: []const u8 };
pub var want_buf: [4096]u8 = undefined;
pub var want: ?[]const u8 = null;
+/// ...and the same request as a NAME, for the Debug overlay to show. A slice
+/// of `want_buf` rather than a second buffer: the stem of the path IS the name
+/// the picker listed, and the only writer of one is the writer of the other.
+///
+/// What was CHOSEN, not what is worn: the shell may turn a file down (gui.zig
+/// keeps the face that works when FreeType refuses one) and it alone knows
+/// what it booted in — embedded Adwaita Mono under SDL, the system monospace
+/// face under AppKit. Empty means nothing has been chosen and the shell is
+/// still wearing whichever of those it is.
+pub var chosen: []const u8 = "";
+
/// Optional fallback faces, in preference order after the always-available
/// embedded Adwaita Mono face. Keep text faces before symbol faces so ordinary
/// letters retain terminal-like metrics; DejaVu Sans is the final broad,