Skip to content

Improve vertical centering of text (e.g. in buttons) #4929

@abey79

Description

@abey79

The optical vertical alignment of text is not perfect with button and selectable label, especially with the Inter font we use at rerun. The text here should be ~1-2px lower compared to the background. Unfortunately, we dont have separate control on the top/bottom padding there.

image

I'm not sure if there is something in the font metadata that could be used to adjust alignment.

An escape hatch would be provided by making button_padding a Margin instead of a Vec2.

Metadata

Metadata

Assignees

Labels

bugSomething is brokenepaintrerunDesired for Rerun.iostylevisuals and themingtextProblems related to text

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions