-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Justify text with any custom font does not work #3261
Comments
Thanks for reporting this. A pull request to fix it is very welcome ;) |
Hi I would like to look into this! |
The word spacing setting (Tw) isn't applied to spaces in multi-byte fonts. Possible workaround is to toggle between multi-byte fonts and the regular fonts just to apply the right spacing. Shall I go ahead to try this? https://stackoverflow.com/questions/4063302/pdf-format-word-spacing |
Thank you so much for solving this! Can someone please merge this so we can use it? |
Still not working for the following fonts, it works fine if I set font to Helvetica
|
U can see bug here: https://mrrio.github.io/jsPDF/
Code:
The text was updated successfully, but these errors were encountered: