Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

implement smart line wrapping #97

Open
Yay295 opened this issue Aug 3, 2017 · 0 comments
Open

implement smart line wrapping #97

Yay295 opened this issue Aug 3, 2017 · 0 comments

Comments

@Yay295
Copy link

Yay295 commented Aug 3, 2017

Implement the smart line wrapping styles (WrapStyle 0 and 3).

Per spec, wrap style 0 tries the make the lines equal length, but ensures lines are never longer than the line above it. Wrap style 3 does the same, but shorter lines are on top. Note that libass seems to treat style 3 as if it were style 0, and uses style 1 if the line is too long (though I don't know what the limit is).

It may be possible to implement this using balance-text. Though balance-text only makes the lines similar length; it doesn't ensure lower lines are shorter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant