From 54b56af57000c14b3cc418ee26cfbf306a58cdbe Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Tue, 22 Jul 2025 09:30:43 -0700 Subject: [PATCH] Rewrite comment for clarity --- src/font/Metrics.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/font/Metrics.zig b/src/font/Metrics.zig index 811a4c139..d26f833af 100644 --- a/src/font/Metrics.zig +++ b/src/font/Metrics.zig @@ -235,10 +235,9 @@ pub fn apply(self: *Metrics, mods: ModifierSet) void { // centered in the cell. if (comptime tag == .cell_height) { // We split the difference in half because we want to - // center the baseline in the cell. We round the shift - // down to the nearest full pixel shift, such that if - // the diff is odd, there's one more pixel added/removed - // on top than on the bottom. + // center the baseline in the cell. If the difference + // is odd, one more pixel is added/removed on top than + // on the bottom. if (new > original) { const diff = new - original; const diff_bottom = diff / 2;