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

Add option to Justify #34

Closed
naveen521kk opened this issue Mar 1, 2021 · 1 comment · Fixed by #40
Closed

Add option to Justify #34

naveen521kk opened this issue Mar 1, 2021 · 1 comment · Fixed by #40
Assignees
Labels
enhancement New feature or request

Comments

@naveen521kk
Copy link
Member

naveen521kk commented Mar 1, 2021

It isn't that great that we can't justify a Paragraph of Text directly in Manim using MarkupText. Also, there is a Paragraph Mobject but it does things manually which Pango does for us. Also, we should make Paragraph object use these rather than implementing it by hand, as it is done currently.
these are the link to docs which we should implement
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-justify
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-indent
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-spacing
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-line-spacing
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-auto-dir
https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-set-alignment
This should be done after #30
cc @PhilippImhof

@naveen521kk naveen521kk added the enhancement New feature or request label Mar 1, 2021
naveen521kk added a commit that referenced this issue Mar 3, 2021
@naveen521kk
Copy link
Member Author

naveen521kk commented Mar 3, 2021

I have done some in 942f2f6
where I could create things like, center justified
image
or like this, right justified
image
or with an indent in the start
image
or justified
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant