blank out web canvas impl

This commit is contained in:
Mitchell Hashimoto
2022-11-30 17:47:32 -08:00
parent b858aea124
commit c32219554a
3 changed files with 1 additions and 16 deletions

View File

@ -28,7 +28,6 @@
const atlas = atlas_new(512, 0); const atlas = atlas_new(512, 0);
const reg = atlas_reserve(atlas, 10, 10); const reg = atlas_reserve(atlas, 10, 10);
console.log(reg);
free(reg); free(reg);
atlas_free(atlas); atlas_free(atlas);
}); });

View File

@ -1,22 +1,11 @@
const std = @import("std"); const std = @import("std");
const builtin = @import("builtin"); const builtin = @import("builtin");
const freetype = @import("freetype");
const assert = std.debug.assert; const assert = std.debug.assert;
const testing = std.testing;
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const font = @import("../main.zig"); 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); const log = std.log.scoped(.font_face);
pub const Face = struct { pub const Face = struct {
/// The presentation for this font. This is a heuristic since fonts don't have // TODO
/// 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,
}; };

View File

@ -3,6 +3,3 @@
pub usingnamespace @import("wasm.zig"); pub usingnamespace @import("wasm.zig");
pub usingnamespace @import("font/main.zig"); pub usingnamespace @import("font/main.zig");
// TODO: temporary while we dev this
pub usingnamespace @import("font/face/web_canvas.zig");