-
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
Noto Sans JP not working #3152
Comments
Can reproduce the issue. Looks like jsPDF does not support this type of font. An exception is thrown:
|
@HackbrettXXX Do you know a font that I could use that would handle Japanese characters and that looks like Noto Sans or Open Sans? |
Not really. |
Here for a similar reason. The Noto Sans JP (and SC for Chinese) fonts are only available as .otf files. I don't think the font converter handles dealing with these types of files very well :(. Being able to support these types of fonts would be massive. |
Thanks to your issue, I found out that jsPDF doesn't support NotoSans. Thank you. I've also created a PR to address NotoSans TTF. |
this font works for me |
I can't find a way to use Japanese font with jsPDF.
I've created the font with the fontconverter using Noto Sans JP from Google Font, I've imported it but I can't use any Glyphs that I find on the Google Font page here: https://fonts.google.com/specimen/Noto+Sans+JP#glyphs
I can see that the font is imported because it changes if I remove the font script.
Here is a CodeSandbox that reproduces the error: https://codesandbox.io/s/busy-joliot-jwjy8?file=/main.js
I also tried with others fonts, without any better results.
I am using jsPDF in a web application with users from all around the world and I am gettings requests from Japanese to handle it. Any help would be very appreciated!
Thanks
The text was updated successfully, but these errors were encountered: