-
Notifications
You must be signed in to change notification settings - Fork 142
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
Kerning support #82
Comments
Yes, this is unfortunately currently not supported. While the kerning offset is already read (https://github.com/rkusa/pdfjs/blob/master/lib/font/otf.js#L55) the correct placement within the PDF document is not implemented. Since this is something just recently requested from customers of the application where I am using this library, I might have a look at it soon. |
Limitation: does not work when appending text, yet Refs #82
I've implemented kerning. Please let me know if you see anything strange. There is still one limitation, the kerning does not yet work when appending text, e.g. doc.text('A').append('VA'); |
Great thanks! I tested it out and it seems this fixed kerning for ASM, but not OTF. After some diving, I think this PR should get OTF to work as well: #84 |
It doesn't look like kerning information is used with ASM or OTF fonts. Both examples below show gaps between the A and the V:
The text was updated successfully, but these errors were encountered: