Skip to main content

Use Fonts from Internet With Manim.

Project description

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

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 license under BSD 3-Clause License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for manim-fonts, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size manim_fonts-0.2.0-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size manim-fonts-0.2.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page