From 9a628d8a8e385b3210464992d19ce371b60c897e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 28 May 2024 20:56:47 -0700 Subject: [PATCH] font: remove unused structs --- src/font/face.zig | 9 --------- src/font/face/coretext.zig | 1 - 2 files changed, 10 deletions(-) diff --git a/src/font/face.zig b/src/font/face.zig index 5971b5b33..8bcfb8209 100644 --- a/src/font/face.zig +++ b/src/font/face.zig @@ -48,15 +48,6 @@ pub const DesiredSize = struct { } }; -/// Glyph index into a face. -pub const GlyphIndex = struct { - /// The index in the face. - index: u32, - - /// True if the glyph is a colored glyph. - color: bool, -}; - /// A font variation setting. The best documentation for this I know of /// is actually the CSS font-variation-settings property on MDN: /// https://developer.mozilla.org/en-US/docs/Web/CSS/font-variation-settings diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 4618ad0b7..0abf614cb 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -7,7 +7,6 @@ const harfbuzz = @import("harfbuzz"); const font = @import("../main.zig"); const opentype = @import("../opentype.zig"); const quirks = @import("../../quirks.zig"); -const GlyphIndex = font.face.GlyphIndex; const log = std.log.scoped(.font_face);