You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slow PDFKit Document creation and unresponsive, when WOFF type fonts are used.
No performance impact for the same font in TTF
Description of the problem
We are generating 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.And it becomes unresponsive in Firefox. However, for other languages, it is way less ~ around 1 -2 seconds.
With TTF it works better without any issues
Note: Unable to upload woff font in GitHub. So shared the link from where I downloaded it.
Your environment
pdfkit version: 0.12.10
Node version: 18
Browser version (if applicable): Chrome Delay is seen but in Firefox it becomes unresponsive.
Operating System: Windows
The text was updated successfully, but these errors were encountered:
Bug Report
Slow PDFKit Document creation and unresponsive, when WOFF type fonts are used.
No performance impact for the same font in TTF
Description of the problem
We are generating 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.And it becomes unresponsive in Firefox. However, for other languages, it is way less ~ around 1 -2 seconds.
With TTF it works better without any issues
Note: Unable to upload woff font in GitHub. So shared the link from where I downloaded it.
Your environment
The text was updated successfully, but these errors were encountered: