summaryrefslogtreecommitdiff
path: root/src/fonts.zig
diff options
context:
space:
mode:
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