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

[Fallback Font] jspdf fallback font for other language #3786

Open
indraraj26 opened this issue Oct 15, 2024 · 0 comments
Open

[Fallback Font] jspdf fallback font for other language #3786

indraraj26 opened this issue Oct 15, 2024 · 0 comments

Comments

@indraraj26
Copy link

I have read and understood the contribution guidelines.

We use custom font let's say sans that does not support chinese language. How do i add fallback option in the jspdf that it will not use sans font for chinese. How do you support all the global language ?

  doc.addFileToVFS('custom-sans-normal.ttf', customSansFont);
  doc.addFont('custom-sans-normal.ttf', 'custom-sans', 'normal');
  doc.setFont("custom-sans", 'normal');

Reported on stackoverflow too : https://stackoverflow.com/questions/79088786/jspdf-fallback-font-for-other-language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant