-
Notifications
You must be signed in to change notification settings - Fork 21
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
Try to render fonts on canvas correctly #1
Comments
Do you have any plans to implement this or can give any directions where to begin to look? Or how did you generally plan to make this work? |
If you could take a look at mozilla/pdf.js#7929 (comment) (and comments below) I would appreciate it. |
@swftvsn Not sure how to approach this. This issue is not (yet) a priority for us, because we are fine with rendering fonts as images. It is not a priority for us right now, but to point you in a direction: I'm pretty sure you need the fonts installed on the machine running nodejs. Looking at your
It's something I missed the last time trying. Still, if you render the node-canvas as image (png/jpg) it may be enough to set |
@Hikariii Yep, we're running with |
See mozilla/pdf.js#7929.
Embedded fonts could not be rendered through
node-canvas
.Now Canvas has https://github.com/Automattic/node-canvas#registerfont-for-bundled-fonts.
Try to use a pdf.js hook to register a font with Canvas and render it.
If this is implemented
PDFJS.disableFontFace=true;
can be set to false.The text was updated successfully, but these errors were encountered: