From f6e708c0fb04d89b9705bc6e20131e5637a5723f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 28 May 2024 20:58:06 -0700 Subject: [PATCH] font/coretext: cleanup unused comments --- src/font/face/coretext.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 0abf614cb..ceb2e40f7 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -253,9 +253,6 @@ pub const Face = struct { // to decode down into exactly one glyph ID. if (pair) assert(glyphs[1] == 0); - // If we have colorization information, then check if this - // glyph is colorized. - return @intCast(glyphs[0]); } @@ -600,6 +597,8 @@ pub const Face = struct { } }; +/// The state associated with a font face that may have colorized glyphs. +/// This is used to determine if a specific glyph ID is colorized. const ColorState = struct { /// True if there is an sbix font table. For now, the mere presence /// of an sbix font table causes us to assume the glyph is colored.