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

Fix custom fonts (requires libpango) #3519

Closed
wants to merge 1 commit into from
Closed

Fix custom fonts (requires libpango) #3519

wants to merge 1 commit into from

Conversation

friday
Copy link

@friday friday commented Dec 10, 2016

Node-canvas fixed custom font loading in v1.6.1 by merging this PR: Automattic/node-canvas#715
It was broken for almost 2 years, although it could be avoided by removing libpango and reinstalling node-canvas (see #3272), that also removed some other functionality (which I'm not sure fabric uses), and with 1.6.1 they explicitly require libpango.

I think fabric should use canvas ~1.6.1 (same as "1.6.x", but excluding 1.6.0), because otherwise the same version of fabric could use different versions of node-canvas and this problem could still occur for people who have installed canvas explicitly or through other dependencies.

Fixes #2514, #3208 and #3272 (duplicates)

Node-canvas fixed custom font loading in v1.6.1 by merging this PR: Automattic/node-canvas#715
It was broken for almost 2 years, although it could be avoided by removing libpango and reinstalling node-canvas (see #3272), that also removed some other functionality (which I'm not sure fabric uses), and with 1.6.1 they explicitly require libpango.

I think fabric should use canvas ~1.6.1 (same as "1.6.x", but excluding 1.6.0), because otherwise the same version of fabric could use different versions of node-canvas and this problem could still occur for people who have installed canvas explicitly or through other dependencies.

Fixes #3272 and #2514
Copy link
Member

@asturur asturur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before next release i will bump canvas version.

@teewuane
Copy link

@asturur I have fabricjs 1.7.1. Currently the dependencies are canvas 1.6.x, jsdom 3.x.x, and xmldom 0.1.x. In the next fabricjs release, are you changing the canvas version to 1.6.1, 1.6.2, or something else?

@asturur
Copy link
Member

asturur commented Dec 12, 2016

latest that do not break unit tests

@friday
Copy link
Author

friday commented Dec 12, 2016

This doesn't work. I misread the releases git commit list and managed to install the wrong libpango package. Two failures that together made it seem like it was fixed.

Very sorry!

On the bright side it looks like we'll get a fix in 2.0.0 in a not too distant future, and I'll keep my trigger happy PR-fingers in check.

@friday friday closed this Dec 12, 2016
@friday friday deleted the patch-1 branch December 13, 2016 00:00
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 this pull request may close these issues.

font problem in nodejs render
3 participants