semvec/pypi-packages huggingface dataset:
manim-fonts 0.5.0
Use Fonts from Internet With Manim.
License: BSD-3-Clause
Requires Python: >=3.9

# Manim Fonts

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

<p align="center">
    <a href="https://pypi.org/project/manim-fonts/"><img src="https://img.shields.io/pypi/v/manim-fonts.svg?style=flat-square&logo=pypi" alt="PyPI Latest Release"></a>
    <a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="Code style: black"></a>
    <a href="https://github.com/naveen521kk/manim-fonts/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/naveen521kk/manim-fonts?style=flat-square"></a>
</p>

## 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/).