ManimCommunity / ManimPango

Binding for Pango, to use with Manim.
https://manimpango.manim.community
MIT License
43 stars 13 forks source link

Stable API #48

Closed naveen521kk closed 2 years ago

naveen521kk commented 3 years ago

I would working over this month on this. For now this is just a draft on how this will look.

Fixes https://github.com/ManimCommunity/ManimPango/issues/28 Also, Fixes https://github.com/ManimCommunity/ManimPango/issues/37 and Fixes https://github.com/ManimCommunity/ManimPango/issues/30

naveen521kk commented 3 years ago

For now, an example of using the API would be

>>> from manimpango import *
>>> l = Layout(markup="<span color='BLUE' font_family='Cursive'>Blue</span>")
>>> r = SVGRenderer('blue.svg', 100, 100, l, move_to=(25,25))
>>> r.render()
True

and an SVG file like this would be created. blue.zip

@PhilippImhof does this look good? Any suggestions?

naveen521kk commented 3 years ago

After implementing Image backend this is done :).

PhilippImhof commented 3 years ago

This looks very nice at the first glance. As it is a very substantial change (and step forward), I would like to take some time to really look at it in details.

naveen521kk commented 3 years ago

Sure, you could look into this now or later when I complete the image backend. There are many codes that aren't used currently only the image backend will use it.

naveen521kk commented 2 years ago

I think I would something from scratch rather than working on this. So closing.