Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Jan 9, 2026

Objective

  1. The font_smoothing field of TextFont is ignored in main currently. Instead it always uses FontSmoothing::Antialiased.
  2. The FontSmoothing enum is missing from the bevy_text prelude.
  3. The FontSmoothing bug wasn't caught by the screenshot CI.

Solution

  1. Store the antialiasing mode in ComputedTextBlock, for use in TextPipeline::update_buffer.
  2. Add FontSmoothing to bevy_text::prelude.
  3. Add a font smoothing example to testbed_ui's Text scene.

Testing

Check testbed_ui's text scene.

…ontSmoothing::Antialiased` was always used. To fix this, store the antialiasing mode in `ComputedTextBlock`, for use in `TextPipeline::update_buffer`.

2. Added the `FontSmoothing` enum to `bevy_text::prelude`.

3. Added a font smoothing example to `testbed_ui`'s `Text` scene.
@ickshonpe ickshonpe added C-Bug An unexpected or incorrect behavior A-Text Rendering and layout for characters D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered labels Jan 9, 2026
@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 Jan 15, 2026
@alice-i-cecile alice-i-cecile added this to the 0.19 milestone Jan 15, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 15, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 15, 2026
# Objective

1. The `font_smoothing` field of `TextFont` is ignored in main
currently. Instead it always uses `FontSmoothing::Antialiased`.
2. The `FontSmoothing` enum is missing from the `bevy_text` prelude.
3. The `FontSmoothing` bug wasn't caught by the screenshot CI.

## Solution

1. Store the antialiasing mode in `ComputedTextBlock`, for use in
`TextPipeline::update_buffer`.
2. Add `FontSmoothing` to `bevy_text::prelude`.
3. Add a font smoothing example to `testbed_ui`'s `Text` scene.

## Testing

Check `testbed_ui`'s text scene.

Co-authored-by: Alice Cecile <[email protected]>
Merged via the queue into bevyengine:main with commit 02c5762 Jan 15, 2026
38 checks passed
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-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Deliberate-Rendering-Change An intentional change to how tests and examples are rendered S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants