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
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-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants