Metadata-Version: 2.1
Name: manim-fonts
Version: 0.3.0
Summary: Use Fonts from Internet With Manim.
Home-page: https://github.com/naveen521kk/manim-fonts
License: BSD-3-Clause
Author: Naveen M K
Author-email: naveen@manim.community
Requires-Python: >=3.9,<3.13
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: appdirs (>=1)
Requires-Dist: manim (>=0.3.0)
Requires-Dist: requests (>=2.0.0)
Project-URL: Repository, https://github.com/naveen521kk/manim-fonts
Description-Content-Type: text/markdown

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

