Skip to content

Bright text is too faint/weak #1410

@emilk

Description

@emilk

Compare white text on black with black text on white:

Screen Shot 2022-03-23 at 13 40 08 Screen Shot 2022-03-23 at 13 40 13

Even though the text colors are #fffff and #00000 they do not appear as such. ab_glyph computes per-pixel coverage values, and no pixels in the text are fully covered by the glyph. This makes the text looks a bit too faint in both cases.

This problem is much more pronounced on the bright text. The effect of this is that the bright text looks fainter, thinner and weaker than the black text. This just makes bright mode worse overall in egui.

It is possible this could be solved by either by switching to gamma-blending, or by tweaking how we interpret/store the coverage values we get from ab_glyph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions