hook up logging to wasm, example uses new zig-js package

This commit is contained in:
Mitchell Hashimoto
2022-12-04 13:16:54 -08:00
parent 437f1772f1
commit c48d8cd151
9 changed files with 4547 additions and 48 deletions

View File

@@ -49,6 +49,8 @@ pub const Face = struct {
const canvas = try doc.call(js.Object, "createElement", .{js.string("canvas")});
errdefer canvas.deinit();
log.debug("face initialized: {s}", .{raw});
return Face{
.alloc = alloc,
.font_str = font_str,