fix: broken texture tiling when font_bold
was enabled
This commit is contained in:
@@ -1014,7 +1014,7 @@ function ass_mt:txt(x, y, align, value, opts)
|
|||||||
-- font size
|
-- font size
|
||||||
tags = tags .. '\\fs' .. opts.size
|
tags = tags .. '\\fs' .. opts.size
|
||||||
-- bold
|
-- bold
|
||||||
if opts.bold or options.font_bold then tags = tags .. '\\b1' end
|
if opts.bold or (opts.bold == nil and options.font_bold) then tags = tags .. '\\b1' end
|
||||||
-- italic
|
-- italic
|
||||||
if opts.italic then tags = tags .. '\\i1' end
|
if opts.italic then tags = tags .. '\\i1' end
|
||||||
-- rotate
|
-- rotate
|
||||||
@@ -1125,7 +1125,7 @@ function ass_mt:texture(ax, ay, bx, by, char, opts)
|
|||||||
for i = 1, math.ceil(height / tile_size), 1 do lines = lines .. (lines == '' and '' or '\\N') .. line end
|
for i = 1, math.ceil(height / tile_size), 1 do lines = lines .. (lines == '' and '' or '\\N') .. line end
|
||||||
self:txt(
|
self:txt(
|
||||||
x, y, 7, lines,
|
x, y, 7, lines,
|
||||||
{font = 'uosc_textures', size = tile_size, color = opts.color, opacity = opacity, clip = clip})
|
{font = 'uosc_textures', size = tile_size, color = opts.color, bold = false, opacity = opacity, clip = clip})
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[ ELEMENTS COLLECTION ]]
|
--[[ ELEMENTS COLLECTION ]]
|
||||||
|
Reference in New Issue
Block a user