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

Not able to add font fallback in fontFamily #3031

Open
ShachiTurakhia opened this issue Jan 9, 2025 · 1 comment
Open

Not able to add font fallback in fontFamily #3031

ShachiTurakhia opened this issue Jan 9, 2025 · 1 comment

Comments

@ShachiTurakhia
Copy link

I am trying to add fallback fonts to the fontFamily, something like this:

fontFamily: ['OurCustomFont', 'HelveticaNeue', 'Helvetica Neue', Helvetica', 'Segoe UI', 'Arial',' sans-serif']

image

Package version being used:

"@react-pdf/layout": "3.6.4",
"@react-pdf/textkit": "4.2.1",
"@react-pdf/renderer": "3.1.11",

Desktop (please complete the following information):

  • OS - Windows
  • Browser - Safari
@santrajyadav196
Copy link

I am facing same issue. Pls let me know how to resolve it.

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