From e99376cac14dc59b33c3272ca71aed960e3165b7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 30 Jun 2023 22:55:41 -0700 Subject: [PATCH] font: update comment --- src/font/face/coretext.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 9fb0774da..2380cc555 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -402,9 +402,7 @@ pub const Face = struct { const lines = frame.getLines(); const line = lines.getValueAtIndex(macos.text.Line, 0); - // NOTE(mitchellh): For some reason, CTLineGetBoundsWithOptions - // returns garbage and I can't figure out why... so we use the - // raw ascender. + // Get the bounds of the line to determine the ascent. const bounds = line.getBoundsWithOptions(.{ .exclude_leading = true }); const bounds_ascent = bounds.size.height + bounds.origin.y; const baseline = @floor(bounds_ascent + 0.5);