From e243b2f3ab26d648a24507306b520e219ca02d9c Mon Sep 17 00:00:00 2001 From: Omikhleia Date: Sat, 19 Oct 2024 12:20:56 +0200 Subject: [PATCH] fix(shapers): Measure a character should also return its depth --- shapers/base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapers/base.lua b/shapers/base.lua index b1c992b83..9a0a08063 100644 --- a/shapers/base.lua +++ b/shapers/base.lua @@ -68,7 +68,7 @@ function shaper:measureChar (char) options.tracking = SILE.settings:get("shaper.tracking") local items = self:shapeToken(char, options) if #items > 0 then - return { height = items[1].height, width = items[1].width } + return { height = items[1].height, width = items[1].width, depth = items[1].depth } else SU.error("Unable to measure character", char) end