Skip to content
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

utf8 error with create PDF feature #1184

Open
vunguyen260798 opened this issue Jul 17, 2022 · 1 comment
Open

utf8 error with create PDF feature #1184

vunguyen260798 opened this issue Jul 17, 2022 · 1 comment
Labels
demo concerning our demo (npm start)

Comments

@vunguyen260798
Copy link

this is musicxml version after rendering. it 's ok
image
and here is pdf after i create pdf version. it's wrong with utf8
image
How can I fix it

@sschmidTU
Copy link
Contributor

sschmidTU commented Jul 17, 2022

https://github.com/parallax/jsPDF#use-of-unicode-characters--utf-8

You have to add a font with the necessary glyphs.
Here's an example:
https://codepen.io/kuznetsovvn/pen/jOyWMgq

Or maybe there's a different javascript pdf library which supports UTF-8 natively.
(A pull request would be welcome)

@sschmidTU sschmidTU added the demo concerning our demo (npm start) label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo concerning our demo (npm start)
Projects
None yet
Development

No branches or pull requests

2 participants