font: noop shaper

This commit is contained in:
Mitchell Hashimoto
2024-05-01 10:24:41 -07:00
parent 22702b6941
commit 851b1fe2ac
7 changed files with 188 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
const builtin = @import("builtin");
const options = @import("main.zig").options;
pub const noop = @import("shaper/noop.zig");
pub const harfbuzz = @import("shaper/harfbuzz.zig");
pub const coretext = @import("shaper/coretext.zig");
pub const web_canvas = @import("shaper/web_canvas.zig");
@@ -19,6 +20,8 @@ pub const Shaper = switch (options.backend) {
// font faces.
.coretext => coretext.Shaper,
.coretext_noshape => noop.Shaper,
.web_canvas => web_canvas.Shaper,
};
@@ -61,4 +64,7 @@ pub const Options = struct {
test {
_ = Cache;
_ = Shaper;
// Always test noop
_ = noop;
}