diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-11-30 17:47:32 -0800 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-12-01 13:02:17 -0800 |
| commit | c32219554a4578ba9bb1c84aff5343796558aaa2 (patch) | |
| tree | 35184b2c741b639d85a03873c6e332c9be6fbf24 | |
| parent | b858aea1241206fa2d2c510a0ef13017a31d7b6d (diff) | |
blank out web canvas impl
| -rw-r--r-- | example/index.html | 1 | ||||
| -rw-r--r-- | src/font/face/web_canvas.zig | 13 | ||||
| -rw-r--r-- | src/main_wasm.zig | 3 |
3 files changed, 1 insertions, 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"); |
