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

Fix #649: register builtin fonts into fontstore #2338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mocanew
Copy link

@mocanew mocanew commented Jun 19, 2023

Fixes #649.

Since FontSource is not exported, it should be fully backwards compatible, thus only requiring a patch version bump.

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2023

🦋 Changeset detected

Latest commit: ad94d1b

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

This PR includes changesets to release 3 packages
Name Type
@react-pdf/font Patch
@react-pdf/renderer Patch
@react-pdf/examples 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

@mocanew mocanew force-pushed the feature/builtin-font-weight branch from 3d2b4df to ad94d1b Compare June 19, 2023 01:28
@mocanew
Copy link
Author

mocanew commented Jun 19, 2023

One side effect is that the user can now override built-in fonts (by registering the font family "Helvetica" again), but I think this is the proper outcome.

@mocanew mocanew changed the title Register builtin fonts into fontstore Fix #649: register builtin fonts into fontstore Jun 19, 2023
@thecodrr
Copy link

@diegomura what's the status on this?

@diegomura
Copy link
Owner

Will take a look very soon

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

Successfully merging this pull request may close these issues.

Included fonts does not support fontWeight modifier for default fonts
3 participants