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

Documentation of text option 'features' missed passing an object to deactivate default font features #1581

Merged
merged 2 commits into from
Jan 11, 2025

Conversation

bennol
Copy link
Contributor

@bennol bennol commented Jan 9, 2025

I was struggling to deactivate default font features with the current state of the documentation. Passing an empty array as features still made pdfkit use ligatures and other font features.
After digging through the code I found out you could also pass an object (features: { liga: false }) and therefore explicitly deactivate default font features.

@bennol bennol changed the title Documentation of text option 'features' missed the mention to pass as object, deactivate default font features Documentation of text option 'features' missed passing an object to deactivate default font features Jan 9, 2025
@liborm85 liborm85 merged commit 52ed58e into foliojs:master Jan 11, 2025
3 checks passed
@liborm85
Copy link
Collaborator

Merged. Thanks.

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.

2 participants