Skip to content

FontSource::Default - #25847

Merged
alice-i-cecile merged 14 commits into
bevyengine:mainfrom
ickshonpe:default_font_source
Sep 22, 2026
Merged

alice-i-cecile merged 14 commits into
bevyengine:mainfrom
ickshonpe:default_font_source

Conversation

@ickshonpe

@ickshonpe ickshonpe commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Objective

Fixes #25842

Solution

  • New FontSource::Default variant.
  • New DefaultFontSource resource, that newtypes a FontSource.
  • If FontSource::Default is used, it's replaced by the FontSource from DefaultFontSource.
  • DefaultFontSource(FontSource::Default) is mapped to FontSource::Handle(Handle::default()).

…efault` variant to `FontSource`. `DefaultFontSource` is looked up when resolving `FontSource::Default`. DefaultFontSource(FontSource::Default)` is mapped to the default font asset handle.
@ickshonpe ickshonpe changed the title DefaultFontSource FontSource::Default Sep 19, 2026
@Zeophlite Zeophlite added A-UI Graphical user interfaces, styles, layouts, and widgets S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 19, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in UI Sep 19, 2026
@Zeophlite Zeophlite added the D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes label Sep 19, 2026
@ickshonpe ickshonpe added A-Text Rendering and layout for characters C-Usability A targeted quality-of-life change that makes Bevy easier to use and removed A-UI Graphical user interfaces, styles, layouts, and widgets labels Sep 19, 2026
@alice-i-cecile alice-i-cecile added the M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide label Sep 21, 2026
Comment thread crates/bevy_text/src/text.rs Outdated

@alice-i-cecile alice-i-cecile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this doesn't warrant a release note: too minor. But I've added a suggestion to the migration guide to make it more clear.

Approach looks good though.

@alice-i-cecile alice-i-cecile added X-Uncontroversial This work is generally agreed upon S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 21, 2026
ickshonpe and others added 3 commits September 21, 2026 23:04
…source_parameter.md

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
@ickshonpe ickshonpe added S-Needs-Review Needs reviewer attention (from anyone!) to move forward and removed S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Sep 21, 2026
@ickshonpe

Copy link
Copy Markdown
Contributor Author

IMO this doesn't warrant a release note: too minor. But I've added a suggestion to the migration guide to make it more clear.

Approach looks good though.

Yeah I don't know even why I added it, just running on auto pilot.

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 21, 2026
Comment thread _release-content/migration-guides/font_source_resolve_default_source_parameter.md Outdated
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
@alice-i-cecile
alice-i-cecile added this pull request to the merge queue Sep 22, 2026
Merged via the queue into bevyengine:main with commit e031eff Sep 22, 2026
38 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in UI Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

A documented way to set the app's default font

4 participants