We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0292d1 commit 9b2fd18Copy full SHA for 9b2fd18
1 file changed
l0/ASSFoundation/Section/Text.lua
@@ -62,8 +62,8 @@ return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unico
62
local metr, tagList, shape = self:getTextMetrics(true)
63
local drawing, an = ASS.Draw.DrawingBase{str=shape}, tagList.tags.align:getSet()
64
-- fix position based on aligment
65
- drawing:sub(not an.left and (metr.width-metr.typeBounds.width) / (an.centerH and 2 or 1) or 0,
66
- not an.top and (metr.height-metr.typeBounds.height) / (an.centerV and 2 or 1) or 0
+ drawing:sub(not an.left and (metr.width-metr.bounds.w) / (an.centerH and 2 or 1) or 0,
+ not an.top and (metr.height-metr.bounds.h) / (an.centerV and 2 or 1) or 0
67
)
68
69
-- rotate shape
0 commit comments