font: remove unused struct

This commit is contained in:
Mitchell Hashimoto
2024-03-30 09:48:44 -07:00
parent 6ea68519c2
commit 5546469c37

View File

@ -19,17 +19,6 @@ const Presentation = @import("main.zig").Presentation;
const log = std.log.scoped(.deferred_face); const log = std.log.scoped(.deferred_face);
/// The struct used for deferred face state.
///
/// TODO: Change the "fc", "ct", "wc" fields in @This to just use one field
/// with the state since there should be no world in which multiple are used.
const FaceState = switch (options.backend) {
.freetype => void,
.fontconfig_freetype => Fontconfig,
.coretext_freetype, .coretext => CoreText,
.web_canvas => WebCanvas,
};
/// Fontconfig /// Fontconfig
fc: if (options.backend == .fontconfig_freetype) ?Fontconfig else void = fc: if (options.backend == .fontconfig_freetype) ?Fontconfig else void =
if (options.backend == .fontconfig_freetype) null else {}, if (options.backend == .fontconfig_freetype) null else {},