-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
FontSource::Default
#25847
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
Merged
alice-i-cecile
merged 14 commits into
bevyengine:main
from
ickshonpe:default_font_source
Sep 22, 2026
Merged
FontSource::Default
#25847
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
02a6c20
Added a new `DefaultFontSource(pub FontSource)` resource and a new `D…
ickshonpe 210fbc0
Added `Deref` and `DerefMut` derives for `DefaultFontSize`.
ickshonpe 5f9a6b5
Updated release note
ickshonpe caa3445
updated migration guide
ickshonpe a7513d9
Fixed migration guide formatting
ickshonpe 84473f6
Doc comment edit
ickshonpe f99cab8
Merge branch 'main' into default_font_source
ickshonpe 9293ab3
Update _release-content/migration-guides/font_source_resolve_default_…
ickshonpe 831a7ec
Update crates/bevy_text/src/text.rs
ickshonpe a4340d2
Merge branch 'main' into default_font_source
ickshonpe a96be01
Removed release note.
ickshonpe aaeec50
fix for semicolon_if_nothing_returned lint
ickshonpe 4221f03
Merge branch 'default_font_source' of https://github.com/ickshonpe/be…
ickshonpe 3fc0643
Fix resource name in migration guide
alice-i-cecile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
_release-content/migration-guides/font_source_resolve_default_source_parameter.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| title: New `default_source` parameter on `FontSource::resolve_font_family` | ||
| pull_requests: [25847] | ||
| --- | ||
|
|
||
| The `FontSource::resolve_font_family` method now takes a `default_source` argument that is used to resolve `FontSource::Default`. | ||
|
|
||
| You should set the value of the `DefaultFontSource` resource to set the default font for your app now. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.