-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Adding Standard 14 Font Support - For Acroform use #11637
Comments
There is some DA parsing in https://github.com/mozilla/pdf.js/pull/10122/files, but it was never finished. I think we don't have the 14 standard fonts because of licensing issues, but perhaps @Snuffleupagus can chime in on that part? |
@timvandermeij, thanks for the pull reference. My thought was to have a small array of these fonts with their properties. Something like this: We could parse the DA to get the font-code and size, use the code to look up the actual font and font characteristics, and then do the equivalent of "_setTextStyle" in annotation_layer.js. Because this is strictly working in the display within the browser, the fonts do not necessarily need to be shipped (I assume that was the licensing issue). All we would be doing is simply providing browser hints to what we are looking for. I can see this being useful until the fontRefName issue for acroforms is resolved, and for PDFs that do not actually embed these fonts at all. |
I think we could use the fonts in pdfium since the project is also apache 2.0. |
@brendandahl @timvandermeij What is the current status of this issue? If possible please let me know when you guys will release a update with fix in |
Duplicate of #4244 |
The Issue:
Today Acroform text input elements are not being styled correctly in regard to font, font size, etc.
There are two issues there, one involving a half baked font reference issue where fontRefName is never being set. Even when implemented, there may never be a font reference. The second issue is that pdf.js does not have "Standard 14" font support that describes 14 fonts that acrobat reader instinctively knows about.
Questions:
Thanks!
The text was updated successfully, but these errors were encountered: