diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/exec.zig | 3 | ||||
| -rw-r--r-- | core/replica.zig | 8 | ||||
| -rw-r--r-- | core/root.zig | 4 |
3 files changed, 7 insertions, 8 deletions
diff --git a/core/exec.zig b/core/exec.zig index 52f54541..99868434 100644 --- a/core/exec.zig +++ b/core/exec.zig @@ -20,7 +20,6 @@ const python_lang = blk: { @setEvalBranchQuota(20_000); break :blk @import("grammar_manifest.zig").byName("python").?; }; -const font_picker = pardes.font_picker; const fonts = pardes.fonts; const Pane = panes.Pane; const MAX_COLS = pardes.MAX_COLS; @@ -1014,7 +1013,7 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Settings.Setting, arg: ?[ return p.reportFailure(v.active, text.print("Theme: no theme \"{s}\"; like it: {s}; Themes lists all", .{ shown, colors.themesNear(near[0..@min(room, near.len)], want) })); }, .font => { - if (comptime !font_picker) return; + if (comptime !pardes.builtins.capabilities.font_picker) return; const spec = config.Settings.FontSpec.parse(arg orelse return) orelse return; // The session's machine's fonts, a question to its disk: a // client's replay takes the session's answer, never its own. diff --git a/core/replica.zig b/core/replica.zig index 817d2c19..44fa922f 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -6784,12 +6784,10 @@ const may_wait = [_]Wait{ .{ .what = "*", .on = .addon, .stop = "a kind's close", .why = "a kind's pane closed: its state let go on the session" }, .{ .what = "*", .on = .addon, .stop = "a kind's word", .why = "a word to a kind (a key it takes as one): its own state" }, .{ .what = "*", .on = .addon, .stop = "a kind's open", .why = "a kind's pane opened (`Life`): its state made on the session" }, -} ++ (if (pardes.font_picker) [_]Wait{ - // A window's view (the font words are a window's). +} ++ (if (pardes.builtins.capabilities.font_picker) [_]Wait{ + // A window's view's words, which a terminal's build has too: a window + // client of its session runs them. .{ .what = "Font *", .on = .any, .stop = "fonts", .why = "the session's machine's fonts, its disk" }, -} else [_]Wait{}) ++ (if (pardes.builtins.capabilities.font_picker) [_]Wait{ - // ...and Fonts a terminal's build has too, which a window client of its - // session runs (exec.zig's Font, a window build's alone, does not). .{ .what = "Fonts", .on = .any, .stop = "fonts", .why = "the session's machine's fonts, its disk" }, } else [_]Wait{}); diff --git a/core/root.zig b/core/root.zig index 8c325935..ce7df47c 100644 --- a/core/root.zig +++ b/core/root.zig @@ -115,7 +115,9 @@ const Loc = Jump.Loc; pub const can_attach = platform == .tui or platform == .gui; -pub const fonts = if (font_picker) @import("dev").fonts else struct {}; +/// The machine's fonts: every desktop build's, which steps a window's Font +/// as the window does (builtins.capabilities), and the Mac's. +pub const fonts = if (builtins.capabilities.font_picker) @import("dev").fonts else struct {}; pub const Pane = panes.Pane; const Text = panes.Text; |
