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

Certain fonts throw error from foliojs/fontkit #1383

Closed
ihuzum opened this issue Aug 4, 2022 · 1 comment
Closed

Certain fonts throw error from foliojs/fontkit #1383

ihuzum opened this issue Aug 4, 2022 · 1 comment

Comments

@ihuzum
Copy link

ihuzum commented Aug 4, 2022

When using certain fonts (pdfkit.font(...)) and writing text with them (pdfDoc.text(...)), the script crashes with "Cannot access 'pts' before initialization".

This bug was actually fixed in foliojs/fontkit, here: foliojs/fontkit#286.
But, this fix is not yet released or tagged in foliojs/fontkit.

The request is to bring the fix in foliojs/pdfkit.

@liborm85
Copy link
Collaborator

Fontkit library updated in latest version 0.16.0.

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