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

The font weight is bold #202

Open
yhannn0814 opened this issue Dec 9, 2024 · 5 comments
Open

The font weight is bold #202

yhannn0814 opened this issue Dec 9, 2024 · 5 comments

Comments

@yhannn0814
Copy link

Using the same font package, only Regular weight, the font rendered by skia-canvas is thicker than the browser rendered font. When rendered by node-canvas, it is the same as expected.

node v12.12.0
canvas: 2.11.2
macOs: 14.3.1 M1

@yhannn0814
Copy link
Author

canvas:
20241209141202

@yhannn0814
Copy link
Author

skia-canvas
20241209141210

@samizdatco
Copy link
Owner

Could you please add:

  • the version of Skia Canvas you're using
  • the image format you exported to
  • the name of the font (and a source for it if it's non-standard)
  • the response you get from running node -e 'c = new (require("skia-canvas").Canvas)(); console.log(c)'

@yhannn0814
Copy link
Author

@yhannn0814
Copy link
Author

@samizdatco I found that other fonts have this problem when rendered using version 2.0.0, and the font will be thicker, such as PingFang SC

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

2 participants