Skip to content

Commit 7d6b0d1

Browse files
committed
assume furi use parent syl style
1 parent ea0acc2 commit 7d6b0d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

automation/include/karaskel-auto4.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function karaskel.preproc_line_size(meta, styles, line)
283283
if style_reset_name and styles[style_reset_name] then
284284
cur_style = styles[style_reset_name]
285285
end
286-
286+
287287
syl.style = cur_style
288288
syl.width, syl.height = aegisub.text_extents(syl.style, syl.text_spacestripped)
289289
syl.width = syl.width * meta.video_x_correct_factor
@@ -302,6 +302,9 @@ function karaskel.preproc_line_size(meta, styles, line)
302302
for f = 1, line.furi.n do
303303
local furi = line.furi[f]
304304
furi.style = line.furistyle
305+
if styles[furi.syl.style.name .. "-furigana"] then
306+
furi.style = styles[furi.syl.style.name .. "-furigana"]
307+
end
305308
furi.width, furi.height = aegisub.text_extents(furi.style, furi.text)
306309
furi.width = furi.width * meta.video_x_correct_factor
307310
furi.prespacewidth = 0

0 commit comments

Comments
 (0)