mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
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:
parent
119690ec51
commit
b032226870
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user