Skip to content

Commit

Permalink
fix(shapers): Measure a character should also return its depth
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Oct 29, 2024
1 parent a017ca1 commit e243b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapers/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e243b2f

Please sign in to comment.