Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second line too low when margins are used #41

Closed
qtoden opened this issue Oct 6, 2023 · 0 comments · Fixed by #42
Closed

Second line too low when margins are used #41

qtoden opened this issue Oct 6, 2023 · 0 comments · Fixed by #42

Comments

@qtoden
Copy link
Contributor

qtoden commented Oct 6, 2023

When a dialogue line breaks because it is slightly too long to fit on one line, the subtitle will sometimes still be positioned as if it only has one single line.

It seems like the measured element height that is used to calculate the y position doesn't take margins into account.

image

[Script Info]
ScriptType: v4.00+
PlayResX: 1920
PlayResY: 1080
WrapStyle: 1

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: nxt-default,FreeSans,80,&H00FFFFFF,&H000000FF,&H80000000,&H0,0,0,0,0,100,100,0.7,0,3,0.001,0,1,196,30,43,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,9:59:59.00,nxt-default,,0000,0000,0000,,Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant