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

Font with LCD subpixel antialiasing in compatibility mode messes up color #77443

Closed
Calamander opened this issue May 24, 2023 · 3 comments · Fixed by #77946
Closed

Font with LCD subpixel antialiasing in compatibility mode messes up color #77443

Calamander opened this issue May 24, 2023 · 3 comments · Fixed by #77946

Comments

@Calamander
Copy link
Contributor

Calamander commented May 24, 2023

Godot version

4.0.2.stable, 4.0.3.stable

System information

Win10, i7-10870H, Intel UHD Graphics / GeForce RTX 3060 Laptop(31.0.15.3203)

Issue description

In Compatibility mode Control nodes (tested Label, Button, LineEdit, RichTextLabel, probably others) with imported Font with LCD subpixel antialiasing enabled messes up non-standard font-color if there is Control with default font (or non LCD subpixel antialiased) present. It also somehow depends on node hierarchy and which nodes are currently visible.

LCD_subpixel_compatability_bug.mp4

Steps to reproduce

  1. import any font and enable LCD subpixel antialiasing for it;
  2. Create at least 1 control with text with this font and at least 1 for default or non-LCDspa so that LCDspa font precedes non-LCDspa one in hierarchy;
  3. Change default color for LCDspa font;
  4. Move around so that you see only LCDspa node or both and observe unintended color change;
  5. (optional) other LCDspa node positioned after non-LCDspa in hierarchy prevents color change when visible.

Minimal reproduction project

LCD_Subpixel_n_ColorRect_antialiasing_bug.zip

@AThousandShips
Copy link
Member

Related to #70679?

@akien-mga akien-mga changed the title Font with LCD subpixel antialiasing in compatability mode messes up color Font with LCD subpixel antialiasing in compatibility mode messes up color May 24, 2023
@akien-mga
Copy link
Member

CC @bruvzg @clayjohn

@clayjohn
Copy link
Member

I guess the blend state is incorrectly cached in this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants