bevyengine / bevyengine/bevy

Vertically-centered text is too low

Open
#15,971 23 comments 1 reaction 0 assignees View on GitHub
A-Text C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.15.0-dev, although this bug has been around a long time.

## What you did

In a flexbox or grid, place a text element with vertical centering.

## What went wrong

The text appears 1 or 2 pixels lower than it should, as seen in the following example screenshot:

![Image](https://github.com/user-attachments/assets/b60db204-59ea-4768-be62-326952203f0a)

## Additional information

I had hoped that the migration to cosmic-text would fix this, but apparently not.

@UkoeHB

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.