Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2023
1 parent 81c1a0e commit bc5a3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ Get fonts on the fly from the internet which can be used with Manim.
```py
from manim import *
from manim_fonts import *


class Example(Scene):
def construct(self):
with RegisterFont("Poppins") as fonts:
a=Text("Hello World",font=fonts[0])
a = Text("Hello World", font=fonts[0])
self.play(Write(a))
```
You can replace `Poppins` with any font available on Google Fonts for example `RegisterFont("Berkshire Swash")`, and this plugin will download that font and add to search path and returns the font names that can be passed to `Text` to directly to use the fonts.
Expand Down

0 comments on commit bc5a3ba

Please sign in to comment.