summaryrefslogtreecommitdiff
path: root/src/font/Collection.zig
diff options
context:
space:
mode:
authorNadir Fejzic <n.fejzic@commend.com>2024-11-09 11:55:29 +0100
committerNadir Fejzic <n.fejzic@commend.com>2024-11-09 12:34:39 +0100
commit83c4d0077b7a06d487057fca3bddcc8a3685ed03 (patch)
treecb2ea9aa3c482a35c3c05f8a1369735a15782888 /src/font/Collection.zig
parente7f286d83fc5d43be519abd0e21a03fadb43377f (diff)
refactor: define `FreetypeLoadFlags` struct and default in `font.face`
Diffstat (limited to 'src/font/Collection.zig')
-rw-r--r--src/font/Collection.zig13
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;