diff options
| author | Nadir Fejzic <n.fejzic@commend.com> | 2024-11-09 11:55:29 +0100 |
|---|---|---|
| committer | Nadir Fejzic <n.fejzic@commend.com> | 2024-11-09 12:34:39 +0100 |
| commit | 83c4d0077b7a06d487057fca3bddcc8a3685ed03 (patch) | |
| tree | cb2ea9aa3c482a35c3c05f8a1369735a15782888 /src/font/Collection.zig | |
| parent | e7f286d83fc5d43be519abd0e21a03fadb43377f (diff) | |
refactor: define `FreetypeLoadFlags` struct and default in `font.face`
Diffstat (limited to 'src/font/Collection.zig')
| -rw-r--r-- | src/font/Collection.zig | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/font/Collection.zig b/src/font/Collection.zig index b65b4bd2e..478c39ded 100644 --- a/src/font/Collection.zig +++ b/src/font/Collection.zig @@ -452,18 +452,7 @@ pub const LoadOptions = struct { /// for this is owned by the user and is not freed by the collection. metric_modifiers: Metrics.ModifierSet = .{}, - freetype_load_flags: config.FreetypeLoadFlags = switch (font.options.backend) { - .freetype, - .fontconfig_freetype, - .coretext_freetype, - => .{}, - - .coretext, - .coretext_harfbuzz, - .coretext_noshape, - .web_canvas, - => {}, - }, + freetype_load_flags: font.face.FreetypeLoadFlags = font.face.freetype_load_flags_default, pub fn deinit(self: *LoadOptions, alloc: Allocator) void { _ = self; |
