From faf40df6f31e98eb752fd5e96330221c8f7dbcc7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 12:10:40 -0300 Subject: sketchbook: text in six faces of the Go family, all bundled (f.textIn, host.textSizeIn, sk.Face) --- src/host/Host.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/host/Host.zig') diff --git a/src/host/Host.zig b/src/host/Host.zig index 4b5f2a4..86e1873 100644 --- a/src/host/Host.zig +++ b/src/host/Host.zig @@ -834,8 +834,8 @@ fn apiSamples(ctx: *anyopaque, audio: abi.Audio) []const f32 { fn apiImageSize(ctx: *anyopaque, image: abi.Image) [2]u32 { return hostOf(ctx).images.size(image); } -fn apiTextSize(ctx: *anyopaque, scale: f32, bytes: []const u8) [2]f32 { - return gfx.textSize(hostOf(ctx).renderer, scale, bytes); +fn apiTextSize(ctx: *anyopaque, scale: f32, bytes: []const u8, face: abi.Face) [2]f32 { + return gfx.textSize(hostOf(ctx).renderer, scale, bytes, face); } fn apiLoadSound(ctx: *anyopaque, path: []const u8) abi.Audio { return hostOf(ctx).audio.load(path); -- cgit v1.3