question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing fonts in "Text" does not work

See original GitHub issue

Hi, maybe it is only on my system (Ubuntu 20.04), but using this example:

class Example5Text(Scene):
        def construct(self):
            text = Text('Hello world', font='Source Han Sans').scale(3)
            self.add(text)

should give this result: image (image is taken from https://github.com/3b1b/manim/pull/680) However, when I run it on my machine, it only renders the text with the default font. To distinguish the default font from Source Han Sans, note that the “ll” has no small arc at the bottom in the default font.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
behacklcommented, Oct 2, 2020

I cannot reproduce this either, looks like you might simply be missing the font.

1reaction
naveen521kkcommented, Oct 16, 2020

have you tried building the docs using PangoText instead of CairoText? That will already cover quite a few more use cases I think. Just one idea for more testing 😃

That’s already being built. I did it while I was documenting it. It is here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I Try To Change The Font, But It Doesn't Always Work! (4/30/12)
Click first to place the insertion point (or click-and-drag first to select some text), then change the font.
Read more >
I can`t change the font for writing - Google Groups
Type in--or select--your font. Click "Default." That should set whatever font you designate as your default font.
Read more >
Word does not change entire body of text to desired font
The issue occurs with all the files that I have copied and pasted into word. Any files that I type in Adobe Caslon...
Read more >
html - Font family does not change in the output - Stack Overflow
In the < h1 > tag, when I change any font family for any block of text (or a division), and open it...
Read more >
Fix Weird Font Problem in Windows 10 - YouTube
Fix Weird Font Problem in Windows 10This is a very weird font problem where people are say the main font has been changed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found