arcusmaximus / YTSubConverter

A tool for creating styled YouTube subtitles
MIT License
767 stars 55 forks source link

Odd position shifting during {\t} effects w/ alpha #69

Closed Wat86 closed 2 years ago

Wat86 commented 2 years ago

https://youtu.be/Oh_OEBGZCSM?t=109

Every subtitle here should be at position {\pos(590,880)} with {\an8}. For whatever reason, whenever a \t effect that changes alpha is going on, it shifts the position of the line being changed by the effect (Not the entire subtitle) downwards, and it gets shifted back into position when the effect is over.

This only seems to be affecting this video for whatever reason; https://youtu.be/oOUw68yWKO8?t=20 (This video uses a similar method but does not have this issue)

I've tried retyping in the entire subtitle, and deleted & redownloaded YTSubConverted, but the issue still persists.

Wat86 commented 2 years ago

Upon further experimentation, it looks like this has something to do with font sizes. The font size in the default "English" subtitles is set to be 15 with default's size being 20 The font size for the start of "English - Fade oddity test" is set to be 20 with a default's size being 20, and the bug goes away unless I change the font size back down to 15

perhaps something with the line spacing is going wrong during the \t effect? I'll provide my .ass files used for testing

cnpFADETEST.txt cnpENStyleTestTWO.txt

As well, some other looking shows that some subtitles are getting their positions shifted from just \fad: Compare positions at 30 seconds to 33 seconds. Both are set with {\fs15}{\an8}{\pos(590,880)}

arcusmaximus commented 2 years ago

Fixed in the newly released 1.6.3 build. Thanks for reporting!