Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineEdit scaling misalignment compared to Label when using font oversampling #50105

Open
LoneDespair opened this issue Jul 3, 2021 · 3 comments

Comments

@LoneDespair
Copy link

LoneDespair commented Jul 3, 2021

Godot version

3.3.2.stable

System information

Windows 10

Issue description

The font and selection highlight of LineEdit becomes misaligned vertically when scaling and using 2d + expand, and is very noticeable when using small fonts

I am aware that it's not supposed to be pixel perfect but based on my test, it doesn't really affect other nodes like label and etc

The left one is panel container + label and second one is line edit
Before
Screenshot (359)

After
Screenshot (360)

Steps to reproduce

  1. Set stretch to 2d and expand
  2. Set style to flat style
  3. Test

Minimal reproduction project

LineEdit scaling misalignment.zip

@Calinou
Copy link
Member

Calinou commented Jul 3, 2021

@LoneDespair Please upload a minimal reproduction project to make this easier to troubleshoot.

Also, can you reproduce this if you disable font oversampling in the Project Settings?

@LoneDespair
Copy link
Author

LoneDespair commented Jul 3, 2021

@LoneDespair Please upload a minimal reproduction project to make this easier to troubleshoot.

Also, can you reproduce this if you disable font oversampling in the Project Settings?

  • Added

It doesn't occur when oversampling is disabled, but text is pixelated

Also btw, is there a way to disable oversampling on specific nodes?

@Calinou
Copy link
Member

Calinou commented Jul 3, 2021

This means this bug is related to #22580, #37242, #47089 and #47957.

Also btw, is there a way to disable oversampling on specific nodes?

No, this will be supported on specific fonts once #44772 is merged.

@Calinou Calinou changed the title LineEdit scaling misalignment LineEdit scaling misalignment compared to Label when using font oversampling Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants