Skip to content

Add support for subpixel font rendering. #713

Open

Description

@mrDIMAS

Subpixel font rendering results in better font quality, however it is much harder to implement correctly. The engine uses fontdue crate for rendering fonts and it already supports subpixel rendering. However produced glyph texture cannot be used as-is, instead it requires some juggling with colors in fragment shader to make it look good enough.

Straightforward implementation uses dual-source blending and it creates some ugly colored edges:

img

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions