Skip to content

Commit e243b2f

Browse files
OmikhleiaDidier Willis
authored andcommitted
fix(shapers): Measure a character should also return its depth
1 parent a017ca1 commit e243b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shapers/base.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function shaper:measureChar (char)
6868
options.tracking = SILE.settings:get("shaper.tracking")
6969
local items = self:shapeToken(char, options)
7070
if #items > 0 then
71-
return { height = items[1].height, width = items[1].width }
71+
return { height = items[1].height, width = items[1].width, depth = items[1].depth }
7272
else
7373
SU.error("Unable to measure character", char)
7474
end

0 commit comments

Comments
 (0)