Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load custom font #464

Open
1 task
Howlcn1997 opened this issue Feb 5, 2025 · 2 comments
Open
1 task

Unable to load custom font #464

Howlcn1997 opened this issue Feb 5, 2025 · 2 comments
Assignees

Comments

@Howlcn1997
Copy link

Howlcn1997 commented Feb 5, 2025

Overview

When using bodymovin to export json, turn off the glyphs setting and turn on the bundle fonts and inline fonts settings. After rendering, set fPath to the base64 font file (ttf). It can be rendered successfully in lottie-web's svg mode, but it cannot be displayed normally in lottie-web's canvas mode and dotlottie-web.

demo

https://codesandbox.io/p/sandbox/fast-cherry-y26qd9

What repo were you working in when this issue occurred?

dotlottie-web 0.12.0

Labels

  • Add the Type: Bug label to this issue.
@Lighttree
Copy link

Lighttree commented Feb 6, 2025

I have the same issue even when I use a system font family like monospace. Text layers just don't render after migration to dotlottie-web. They are still visible here: https://lottiefiles.github.io/lottie-docs/playground/json_editor/ (not sure what player exactly used lottie-web I assume)

UPD: Yes, I did check in lottiefies "player variants" comparator, ThorVG just doesn't render text there :(

@theashraf theashraf self-assigned this Feb 7, 2025
@theashraf
Copy link
Member

Thanks, @Lighttree and @Howlcn1997, for reporting this! We’re looking into it and will get back with a solution soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants