-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
custom font font subset with Chinese font does not work properly #494
Comments
this example will show https://github.com/rawbin-/node-pdf-test/blob/master/pdflib-test.js just change the following to see the difference
|
Hello @rawbin-! As you have noticed, font subsetting unfortunately does not work with all types of fonts. The library As best I can tell, the issue exists upstream in One way you could attempt to verify that the issue exists in |
I'm going to close this issue for now. It only manifests when users choose to subset a font and does not appear to be an issue with pdf-lib specifically. It is also unlikely to be fixed in the near future unless an enterprising individual decides to work on it. |
I published a new package renamed to pdf-fontkit to fix the subsetting issues. I've tested it and it works fine. Maybe you can use this package to replace @pdf-lib/fontkit. |
@znacloud Thanks for sharing your solution, it works like a charm! It would be great to get this integrated into the main project. |
ref for #207
and example for #430
using the subset option to reduce the generated pdf size, when use subset, the pdf content is not expected
use https://github.com/rawbin-/node-pdf-test to reproduce this issue
with-pdflib.js
andwith-pdflib-issue-430.js
expected
but got
or even blank with
issue-430
exampleThe text was updated successfully, but these errors were encountered: