summaryrefslogtreecommitdiff
path: root/src/sketch/web.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/sketch/web.zig')
-rw-r--r--src/sketch/web.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sketch/web.zig b/src/sketch/web.zig
index 4445e8d..db9d9a8 100644
--- a/src/sketch/web.zig
+++ b/src/sketch/web.zig
@@ -431,7 +431,7 @@ fn Driver(comptime App: type) type {
return .{ js.imageWidth(@backingInt(img)), js.imageHeight(@backingInt(img)) };
}
/// As host.js draws text: 8 px a character and a 16 px line at scale 1.
- fn textSize(_: *anyopaque, scale: f32, bytes: []const u8) [2]f32 {
+ fn textSize(_: *anyopaque, scale: f32, bytes: []const u8, _: abi.Face) [2]f32 {
const count = std.unicode.utf8CountCodepoints(bytes) catch bytes.len;
return .{ @as(f32, @floatFromInt(count)) * 8 * scale, 16 * scale };
}