Error: Font family not registered #2375
Unanswered
reinhardatovos
asked this question in
Q&A
Replies: 1 comment
-
|
I'm getting the same error and Font.getRegisteredFontFamilies() and Font.getRegisteredFonts() say the fonts I'm trying to use are registered too. Did you get a resolution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to use custom fonts within my pdf document - on my local machine everything is working fine, but on stage I get an Error when rendering the PDF:
Error: Font family not registered: WorkSans. Please register it calling Font.register() method.I am using 2 custom font families, I already tried to reduce it to 1 which gives me also the same error. I tried both, Font.register() outside and inside the React component, I also tried to log the registered Font Families via
Font.getRegisteredFontFamilies()andFont.getRegisteredFonts()-> Log says that they my >Font Families are registered (see Screenshot)I really dont know whats happening, since in logs my FontFamilies are shown...
I would appreciate every bit of advice, thank you.
Beta Was this translation helpful? Give feedback.
All reactions