An open API service indexing awesome lists of open source software.

https://github.com/naveen521kk/manim-fonts

Use Fonts from Internet With Manim.
https://github.com/naveen521kk/manim-fonts

fonts google-fonts manim manim-fonts

Last synced: 2 months ago
JSON representation

Use Fonts from Internet With Manim.

Awesome Lists containing this project

README

          

# Manim Fonts

Get fonts on the fly from the internet which can be used with Manim.


PyPI Latest Release
Code style: black
GitHub license

## Example

```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])
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.

The fonts downloaded are cached and are reused.

## License

This project is licensed under [BSD 3-Clause License](https://choosealicense.com/licenses/bsd-3-clause/).