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
when i load ttc font. can not use it.
` var font_url = '/examples/pdf/font/AppleSDGothicNeo.ttc' const fontBytes = await fetch(font_url).then(res => res.arrayBuffer())
const pdfDoc = await PDFDocument.create(); pdfDoc.registerFontkit(fontkit) const customFont = await pdfDoc.embedFont(fontBytes, { subset: true }) `
can anybody help me?
No response
The text was updated successfully, but these errors were encountered:
Hi @qlynick,
Font subsetting is not well supported right now. See #494 (comment).
A fix for subsetting is here, which is waiting on feedback from @Hopding at the moment.
For now, you may need to avoid the {subset: true } option.
{subset: true }
Sorry, something went wrong.
how did you initialize fontkit, can you share the code? thanks
Hi @qlynick, how did you initialize fontkit, can you share the code? thanks I've given up 😂
how did you initialize fontkit, can you share the code? thanks I've given up 😂
No branches or pull requests
What are you working on?
when i load ttc font.
can not use it.
`
var font_url = '/examples/pdf/font/AppleSDGothicNeo.ttc'
const fontBytes = await fetch(font_url).then(res => res.arrayBuffer())
const pdfDoc = await PDFDocument.create();
pdfDoc.registerFontkit(fontkit)
const customFont = await pdfDoc.embedFont(fontBytes, { subset: true })
`
can anybody help me?
Additional Notes
No response
The text was updated successfully, but these errors were encountered: