Skip to content

OpenGL: Font rendering quality is worse than in Vulkan #66463

@Calinou

Description

@Calinou

Godot version

4.0.beta (53d2a9a)

System information

Fedora 36, GeForce GTX 1080 (NVIDIA 515.65.01)

Issue description

Notice how text has black fringing on outlines for certain GUI elements:

Click to view at full size, which is required for accurate comparison.

OpenGL Vulkan
2022-09-26_19 42 04 image
OpenGL Vulkan
2022-09-26_19 42 48 image

This is not present for all text though. Maybe it's caused by sub-pixel offset on certain Control nodes?

This may due to the font subpixel optimization blend mode not being updated for the OpenGL renderer. That said, the editor fonts do not use subpixel optimization (there are no settings for it, even).

Note: This is unrelated to font subpixel positioning, which only affects how the glyphs themselves are rasterized, not how the engine draws them. I'm referring to font LCD subpixel optimizations above.

Steps to reproduce

  • Open the editor on a project with the OpenGL renderer (godot /path/to/project.godot --rendering-driver opengl3 --single-window).

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions