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

[Performance][Custom Fonts]Pdfmake download takes 5x longer & hangs in Firefox for custom fonts CJK languages WOFF #2641

Closed
Saranya-Sivanandham opened this issue Oct 13, 2023 · 1 comment

Comments

@Saranya-Sivanandham
Copy link

Saranya-Sivanandham commented Oct 13, 2023

We are using PDFMake to generate a text-only single-page PDF.
For languages Chinese, Hebrew & Japanese, we are making use of the below Google font in WOFF format downloaded from Google Webfonts helper.

  • Chinese - Noto Sans SC (1.5 MB) Download link Choose Historic support to get WOFF format.

  • Japanese / Hebrew - M PLUS 1p regular Download link Choose Historic support to get WOFF format.

For the above languages with the mentioned fonts, the pdf download takes around 8 seconds - 11 seconds for a single page. However, for other languages, it is way lesser ~ around 1 -2 seconds.

With TTF it works better.

Note: Unable to upload woff font in GitHub. So shared the link from where I downloaded it.

@Saranya-Sivanandham Saranya-Sivanandham changed the title [Performance][Custom Fonts]Pdfmake download takes 4x longer for custom fonts CJK languages [Performance][Custom Fonts]Pdfmake download takes 5x longer & hangs in Firefox for custom fonts CJK languages Oct 13, 2023
@Saranya-Sivanandham Saranya-Sivanandham changed the title [Performance][Custom Fonts]Pdfmake download takes 5x longer & hangs in Firefox for custom fonts CJK languages [Performance][Custom Fonts]Pdfmake download takes 5x longer & hangs in Firefox for custom fonts CJK languages WOFF Oct 13, 2023
@Saranya-Sivanandham
Copy link
Author

Found the issue is related to fontkit and posted
foliojs/fontkit#321

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

No branches or pull requests

2 participants