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

pango support #5

Closed
asturur opened this issue Mar 26, 2017 · 4 comments
Closed

pango support #5

asturur opened this issue Mar 26, 2017 · 4 comments

Comments

@asturur
Copy link

asturur commented Mar 26, 2017

Hello Chearon,

Would you be so kind to explain in some way what is the difference of node canvas when is built with pango support or not, if pango is complementar to cairo or is on top of it, or in place of it and how this affect text rendering?

I have lot of confusion around this when people open node related question on fabricjs issue tracker.

Is a prebuilt version with pango available?

@chearon
Copy link
Member

chearon commented Mar 26, 2017

Hey, see here for the differences between those builds. Basically if you have Pango you get a very different implementation of custom fonts than if you don't, but more languages/glyphs should work correctly with it. Pango complements Cairo and renders to it as a "backend".

When canvas 2.0 gets released, there won't be 2 different builds, just the Pango one. Prebuilt 1.4-1.6 should be using the Pango build, though... I'll double check that. What issues are people having in fabricjs?

@asturur
Copy link
Author

asturur commented Mar 26, 2017

Mainly text, sometimes shadows.
i rewrote fabricjs text support to be more stable and similar across the two platform and now i have to go with testing. so if use prebuilt version i m still on the best available solution?

@chearon
Copy link
Member

chearon commented Mar 26, 2017

Currently I think there's an issue with the Pango I'm shipping for Linux, I'm gonna try to have that fixed very soon. Other than that I don't think there are going to be any differences with canvas

@chearon
Copy link
Member

chearon commented Apr 17, 2017

I finally got the fix for Pango on Linux working, it involved redoing a lot of the build due to Travis's outdated Ubuntu distribution. Pushing up the new versions now

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