Use Google Fonts With Manim.
Project description
Manim Fonts
Get fonts on the fly from the internet which can be used with Manim.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for manim_fonts-0.1.0.post4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11fee8eddae1382f5fdaaeb7455c15054726daba0cff1c30e5c4fad52cd6b3e |
|
MD5 | eb025baa9dc673b10f85eda951437d79 |
|
BLAKE2b-256 | b6755aa6fb90b63f5ad5da673d515e98be34db43ab37565876bbb8402dc96c70 |