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

Default font on Firefox #29

Closed
mateusfg7 opened this issue Jun 3, 2023 · 2 comments
Closed

Default font on Firefox #29

mateusfg7 opened this issue Jun 3, 2023 · 2 comments
Labels

Comments

@mateusfg7
Copy link

mateusfg7 commented Jun 3, 2023

Before all, thanks for this lib, I am searching for a related thing for a long time!

Problem

I am having issues with font on Firefox, when I save the image using domToPng, the browser default font is used instead my custom font.

preview
image

result
yutyiytuituyrty

Environment

Browser: Firefox 113.0.2
Framework: Next.js@13.4.4
modern-screenshot: 4.4.25
Related Libs: react@18.2.0, tailwindcss@3.3.2, postcss@8.4.24
Repo: https://github.com/mateusfg7/rifa
Related source:

Additional information

I also tested on Chrome and works fine. The problem only occurs on production environment, when I run the app on development environment all works fine.

@qq15725
Copy link
Owner

qq15725 commented Jun 3, 2023

Fixed, please try upgrading to modern-screenshot@^4.4.26

@mateusfg7
Copy link
Author

Solved, thanks again!

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

No branches or pull requests

2 participants