ASSA resamble - add outline width, shadow width and spacing - thx Samo99 :)

Related to https://github.com/SubtitleEdit/subtitleedit/issues/5259#issuecomment-899734100 in #5259
This commit is contained in:
niksedk 2021-08-16 21:09:59 +02:00
parent 119690ec51
commit b032226870

View File

@ -156,7 +156,18 @@ namespace Nikse.SubtitleEdit.Forms.Assa
style.MarginRight = AssaResampler.Resample(sourceWidth, targetWidth, style.MarginRight);
style.MarginVertical = AssaResampler.Resample(sourceHeight, targetHeight, style.MarginVertical);
}
style.FontSize = AssaResampler.Resample(sourceHeight, targetHeight, style.FontSize);
if (fixFonts)
{
style.FontSize = AssaResampler.Resample(sourceHeight, targetHeight, style.FontSize);
}
if (fixFonts || fixDraw)
{
style.OutlineWidth = (decimal)AssaResampler.Resample(sourceHeight, targetHeight, (float)style.OutlineWidth);
style.ShadowWidth = (decimal)AssaResampler.Resample(sourceHeight, targetHeight, (float)style.ShadowWidth);
style.Spacing = (decimal)AssaResampler.Resample(sourceWidth, targetWidth, (float)style.Spacing);
}
}
_subtitle.Header = AdvancedSubStationAlpha.GetHeaderAndStylesFromAdvancedSubStationAlpha(_subtitle.Header, styles);