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
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.
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.
@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)
The text was updated successfully, but these errors were encountered: