mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
blank out web canvas impl
This commit is contained in:
@ -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);
|
||||||
});
|
});
|
||||||
|
@ -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,
|
|
||||||
};
|
};
|
||||||
|
@ -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");
|
|
||||||
|
Reference in New Issue
Block a user