summaryrefslogtreecommitdiff
path: root/src/fonts.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:14:58 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit77671575bd2f481651ea54e956ac5c7da8d63710 (patch)
treedef07749c63bdc279e0119d58101aa1399dd5cf3 /src/fonts.zig
parentb5bb5e8ccf71a5755dde95f04440ee9c6aaa18da (diff)
downloadpardes-77671575bd2f481651ea54e956ac5c7da8d63710.tar.gz
pardes-77671575bd2f481651ea54e956ac5c7da8d63710.zip
idioms #1, std.fs's deprecated aliases in the hosts: std.fs.path and std.fs.max_path_bytes are std.Io.Dir.path and std.Io.Dir.max_path_bytes in 0.17, so the hosts name them there
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/fonts.zig')
-rw-r--r--src/fonts.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fonts.zig b/src/fonts.zig
index a49ef9e4..505190bd 100644
--- a/src/fonts.zig
+++ b/src/fonts.zig
@@ -123,7 +123,7 @@ fn scan(
if (e.depth() < max_depth) w.enter(io, e) catch {};
continue;
}
- const ext = std.fs.path.extension(e.basename);
+ const ext = std.Io.Dir.path.extension(e.basename);
// .ttc is a collection: several cuts of one family in a single
// file, which is how macOS ships Menlo, Courier and a third of
// everything else. The probe below reads face 0 out of one, and
@@ -392,7 +392,7 @@ test "the walk finds this machine's monospace faces" {
try std.testing.expect(font.name.len > 0);
try std.testing.expect(font.path[0] == '/');
// The name is the stem, so the file it came from is always longer.
- try std.testing.expect(std.fs.path.basename(font.path).len > font.name.len);
+ try std.testing.expect(std.Io.Dir.path.basename(font.path).len > font.name.len);
}
// macOS ships Menlo, and ships it inside a .ttc. It is the one face this