Skip to content

Blurry Text Rendering When Using a Pixel-style Font #1790

@zicklag

Description

@zicklag

Describe the bug
When using a pixel-style font like Cozette or Ark I notice that the edges of the font get kind of blurred slightly most of the time, though if you position and size the window/widget to just the right spot the edges will be clear.

Here's a screenshot:

fish-fight-text

The effect is subtle, but zooming in makes it more obvious:

image

But the button text happens to line up fine and end up clear:

image

To Reproduce
It seems to be reproducible by simply uploading a font such as font like Cozette or Ark and placing a label.

Expected behavior
The edges of the font should stay crisply lined up with the screen's pixels

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Additional context

Related to fishfolk/punchy#38.


I wonder if this might be due to linear filtering on the font texture. 🤔 It might be simple enough to allow you to specify that a certain font should have it's texture generated with nearest filtering mode. We would have to test to see if switching the filtering mode will fix the issue.

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