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

OS X 10.11 text drawing #639

Closed
slester opened this issue Oct 12, 2015 · 2 comments
Closed

OS X 10.11 text drawing #639

slester opened this issue Oct 12, 2015 · 2 comments

Comments

@slester
Copy link

slester commented Oct 12, 2015

We're drawing text in canvas to display math, and we're testing what node-canvas draws against what the browser draws for testing purposes. However, with the upgrade to El Capitan, this broke completely. The font size is ENORMOUS, easily 100x the size that is supposed to be drawn (and is drawn in canvas inside a browser). The exact same code has the desired result in 10.10.

Here are some screenshots of what happens:

browser
node-canvas

Any ideas?

@LinusU
Copy link
Collaborator

LinusU commented Oct 12, 2015

Yeah I've been seeing this as well :(

A workaround if to load the font from a .ttf file manually.

@inadarei
Copy link

This is a problem with Cairo, the dependency of Canvas: https://bugs.freedesktop.org/show_bug.cgi?id=84324#c13

There're quite a lot of reports of this problem, affecting other packages, as well, e.g. JuliaGraphics/Cairo.jl#122

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

No branches or pull requests

4 participants