diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.22k stars 1.11k forks source link

fix font fallbacks types #2727

Open hendrikmolder opened 3 weeks ago

hendrikmolder commented 3 weeks ago

Context

2640 Added support for font fallbacks, but we updated the types incorrectly.

FontSource should still accept just a string.

However, in stylesheets we should be able to specify an array of font families (as shown in the font fallbacks example here).

Changes

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 08facf0f7dbf92a4e38bcbc781568489f83c3da8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages | Name | Type | | ----------------------- | ----- | | @react-pdf/types | Minor | | @react-pdf/font | Patch | | @react-pdf/layout | Patch | | @react-pdf/render | Patch | | @react-pdf/renderer | Patch | | @react-pdf/stylesheet | Patch | | @react-pdf/examples | Patch | | @react-pdf/e2e-node-cjs | Patch | | @react-pdf/e2e-node-esm | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR