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

Unable to render font family #14852

Closed
rynangeles opened this issue Apr 28, 2022 · 1 comment
Closed

Unable to render font family #14852

rynangeles opened this issue Apr 28, 2022 · 1 comment

Comments

@rynangeles
Copy link

@Snuffleupagus sorry for the incomplete details of my issue. Basically, I was planning to update my project dependencies.
Application: https://typescript-35ttx9.stackblitz.io/
Code: https://stackblitz.com/edit/typescript-35ttx9?file=index.html
this is the actual code I use to render the PDF and the custom text layers.

In 2.0.274 I was able to display fontFaces of each text layer by just adding the textItem.fontName to its font-family rule in styles (as shown in my initial screenshots). e.g. font-family: g_d0_f1, sans-serif;. But in 2.10.377 its not rendering the fontFace.

Originally posted by @rynangeles in #14330 (comment)

@Snuffleupagus
Copy link
Collaborator

Duplicate of #14330


As mentioned in #14330 (comment), the way that you were using the font names was never really intended/supported since rendering and text-extraction uses different code-paths (even in the PDF specification itself); please keep in mind that the text-layer is supposed to be invisible.
Hence this likely worked purely by a happy coincidence, but it was never actually intended/supported unfortunately.

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

2 participants