Unable to use custom fonts with Manim
- Lingua principale
- Python
- Stelle
- 93.8k
- Fork
- 7.7k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
I tried using the font `cyklop` as a test by following the instructions here: https://github.com/3b1b/manim/issues/471.
I changed my tex_template.tex file to have the following lines:
```
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{cyklop} (This line was added by me.)
\usepackage[T1]{fontenc}
```
Running the script to generate the video now gave me the following error.
```
File "D:\Videos\manim\manimlib\mobject\svg\tex_mobject.py", line 150, in __init__
self.break_up_by_substrings()
File "D:\Videos\manim\manimlib\mobject\svg\tex_mobject.py", line 190, in break_up_by_substrings
sub_tex_mob.move_to(self.submobjects[last_submob_index], RIGHT)
IndexError: list index out of range
```
Do, I need to make any other changes?
What is the `{babel}` after `[english]` and the `{inputenc}` after `[utf8]`?
Is there any way to use Google Fonts here? I know that Google Fonts license permits me to use them anywhere. However, I am not sure about other fonts form https://tug.org/FontCatalogue/.
Thanks.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.