From c32219554a4578ba9bb1c84aff5343796558aaa2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 30 Nov 2022 17:47:32 -0800 Subject: [PATCH] blank out web canvas impl --- example/index.html | 1 - src/font/face/web_canvas.zig | 13 +------------ src/main_wasm.zig | 3 --- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/example/index.html b/example/index.html index 314a78cb1..24acd9527 100644 --- a/example/index.html +++ b/example/index.html @@ -28,7 +28,6 @@ const atlas = atlas_new(512, 0); const reg = atlas_reserve(atlas, 10, 10); - console.log(reg); free(reg); atlas_free(atlas); }); diff --git a/src/font/face/web_canvas.zig b/src/font/face/web_canvas.zig index a09e2e105..a2969ef68 100644 --- a/src/font/face/web_canvas.zig +++ b/src/font/face/web_canvas.zig @@ -1,22 +1,11 @@ const std = @import("std"); const builtin = @import("builtin"); -const freetype = @import("freetype"); const assert = std.debug.assert; -const testing = std.testing; const Allocator = std.mem.Allocator; const font = @import("../main.zig"); -const Glyph = font.Glyph; -const Library = font.Library; -const Presentation = font.Presentation; -const convert = @import("freetype_convert.zig"); const log = std.log.scoped(.font_face); pub const Face = struct { - /// The presentation for this font. This is a heuristic since fonts don't have - /// a way to declare this. We just assume a font with color is an emoji font. - presentation: Presentation, - - /// Metrics for this font face. These are useful for renderers. - metrics: font.face.Metrics, + // TODO }; diff --git a/src/main_wasm.zig b/src/main_wasm.zig index f2bcc9c60..5c4bdbf45 100644 --- a/src/main_wasm.zig +++ b/src/main_wasm.zig @@ -3,6 +3,3 @@ pub usingnamespace @import("wasm.zig"); pub usingnamespace @import("font/main.zig"); - -// TODO: temporary while we dev this -pub usingnamespace @import("font/face/web_canvas.zig");