Open marco-th opened 1 year ago
Same issue in Gujarati Font.
@marco-th and @pratik2575 I found solution for this, please email me at sandiponly4you at gmail.com
I had the same issue? is there any solution
You can fix this by adding { subset: true }
while emending font.
pdfDoc.embedFont(customFontBytes, { subset: true });
I have the same issue with Caveat
You can fix this by adding
{ subset: true }
while emending font.
pdfDoc.embedFont(customFontBytes, { subset: true });
This worked wonderfully for kannada as well..thanks a lot.
What were you trying to do?
When I render Hindi text there are spaces between characters that should not be there. When I use the same font in e.g. Word the font works and displays the text correctly.
How did you attempt to do it?
Here is a minimal example to reproduce the issue: https://codesandbox.io/s/happy-lamarr-5qu6c6?file=/src/index.js:176-186
What actually happened?
This is how the text gets rendered in the PDF:
What did you expect to happen?
This is how the text should be rendered in the PDF:
How can we reproduce the issue?
Here is a minimal example to reproduce the issue: https://codesandbox.io/s/happy-lamarr-5qu6c6?file=/src/index.js:176-186
Version
latest
What environment are you running pdf-lib in?
Browser
Checklist
Additional Notes
No response