-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Invalid text render #548
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
Comments
I'm having the same problem, no solution found... |
I have the same problem.... same code ran against Ubuntu 14.04 cairo setup is fine but Mac is hosed. |
Same problem here, letters are overlapping (looks like a wrong kerning) |
I'm having the same problem -- going back to canvas version 1.1.6 didn't fix it either. Anyone having any luck? OS X |
Please, try it: canvas.contextTop.addFont(font); |
Using fabric.js as mentioned above I still have weird behavior: generated by:
|
I use Mac and fabric. Problem with fonts solving as add fonts definition in code. On linux all ok, but fabric on Mac require definition font. |
I have this problem as well when installed without pango. The following workaround works for me: var font = new Canvas.Font('OpenSans', __dirname + '/../OpenSans.ttf')
font.addFace(__dirname + '/../OpenSans.ttf', 'normal')
ctx.addFont(font)
ctx.font = '12px OpenSans' |
Same problem here (Mac OS X 10.10.5). After removing pango (homebrew), reinstalling cairo (homebrew) and reinstalling canvas (npm), everything worked fine again. The "custom-font-workaround" didn't work for me. |
Thank you for this advice! Had exactly the same problems: After removing pango (homebrew), reinstalling cairo (homebrew) and reinstalling canvas (npm), everything worked fine again. |
Should probably be fixed by #628, should we choose to merge that... |
Same problem here on mac |
Output of pngStream:
System info:
==> Dependencies
Build: xz ✔, pkg-config ✔
Required: freetype ✔, fontconfig ✔, libpng ✔, pixman ✔, glib ✔
==> Options
--universal
Build a universal binary
--without-x11
Build without x11 support
The text was updated successfully, but these errors were encountered: