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 licensed 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.

Source Distribution

manim_fonts-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

manim_fonts-0.4.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file manim_fonts-0.4.0.tar.gz.

File metadata

  • Download URL: manim_fonts-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

File hashes

Hashes for manim_fonts-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9ba904ae1949d8961a6b2bb7a701ece0c90090f9efaab22f86b886596018ffa5
MD5 4f7b6ea9424403f0d493bc843c9ba1fe
BLAKE2b-256 bc3a53070214615f9439e4c40d075b39ed96f4f309f55bdf1acbad056ad1631d

See more details on using hashes here.

File details

Details for the file manim_fonts-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: manim_fonts-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

File hashes

Hashes for manim_fonts-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6db207d0c623a81dc8ea7973611c3e24cc11e95c0431c770c9f741bdf8385b
MD5 4ea4244f6623a926f5b70189eb8799bc
BLAKE2b-256 7c10fef1a66bcdb08156a9e45ba1a9fab751a60737efe22a3feab537b47a0dcb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page