We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
I'm using the font f37 ginger but unfortunately it doesn't support some special characters such as glyphs or ś.
Is there a way in pdfkit of selecting a different font if the special character isn't in the f37 ginger font subset?
doc.registerFont('ginger', 'assets/fonts/f37-Regular.ttf'); doc.registerFont('helvetica-bold', 'assets/fonts/HelveticaNeue-Bold.ttf'); doc.registerFont('nationale', 'assets/fonts/nationale-medium-webfont.ttf');
I'm also creating my content/text dynamically from a JSON file so I can't specify different fonts for each section of text.
lines.forEach((line, num) => { const textContent = doc.font(font) .fontSize(size) .fillColor(fontColors[color]); lines.forEach((line, num) => { textContent .text(line, left, num > 0 ? null : top, {align, width}) .moveDown(0.8); });
Thanks in advance!
The text was updated successfully, but these errors were encountered:
feature request is here: #201
Sorry, something went wrong.
No branches or pull requests
Hi
I'm using the font f37 ginger but unfortunately it doesn't support some special characters such as glyphs or ś.
Is there a way in pdfkit of selecting a different font if the special character isn't in the f37 ginger font subset?
I'm also creating my content/text dynamically from a JSON file so I can't specify different fonts for each section of text.
Thanks in advance!
The text was updated successfully, but these errors were encountered: