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

Mangled text rendering in Chromium-based browsers depending on hardware #204

Open
harbulot opened this issue May 6, 2024 · 0 comments · May be fixed by #205
Open

Mangled text rendering in Chromium-based browsers depending on hardware #204

harbulot opened this issue May 6, 2024 · 0 comments · May be fixed by #205

Comments

@harbulot
Copy link
Contributor

harbulot commented May 6, 2024

I've noticed that in some cases, when using Chrome or Edge (but not Firefox) on some machines, the text for the ticks and axes labels was badly rendered.

Here is a screenshot for example, using http://www.jqplot.com/examples/axisLabelsRotatedText.php :

Screenshot 2024-05-04 130027

This should look like this:

Screenshot 2024-05-04 130015

I'm not entirely sure, but it could be linked to Intel graphics drivers.

One way to fix this is to request users to turn off hardware-accelerated rendering in their Chrome settings: not ideal.

Another way that seems to work is to disable hardware acceleration for the canvas using willReadFrequently:

canvas.getContext('2d', { willReadFrequently: true })
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

Successfully merging a pull request may close this issue.

1 participant