https://github.com/naveen521kk/manim-fonts
Use Fonts from Internet With Manim.
https://github.com/naveen521kk/manim-fonts
fonts google-fonts manim manim-fonts
Last synced: 2 months ago
JSON representation
Use Fonts from Internet With Manim.
- Host: GitHub
- URL: https://github.com/naveen521kk/manim-fonts
- Owner: naveen521kk
- License: bsd-3-clause
- Created: 2021-03-19T13:11:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T17:02:31.000Z (about 1 year ago)
- Last Synced: 2024-12-09T10:13:10.887Z (11 months ago)
- Topics: fonts, google-fonts, manim, manim-fonts
- Language: Python
- Homepage: https://pypi.org/project/manim-fonts/
- Size: 235 KB
- Stars: 27
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Manim Fonts
Get fonts on the fly from the internet which can be used with Manim.
## 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/).