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

Broken Font in Palud scene #15

Closed
dobios opened this issue Dec 8, 2021 · 1 comment · Fixed by #112
Closed

Broken Font in Palud scene #15

dobios opened this issue Dec 8, 2021 · 1 comment · Fixed by #112
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@dobios
Copy link
Member

dobios commented Dec 8, 2021

Problem

Font looks weird and half-displayed in many cases on the screen.

Reason

After extensive research, I've found that this is due to font downscaling causing sub-pixel alignments, meaning that there aren't enough pixels to show font detail at that small a size. There isn't really any solution to this, due to a lack of physical pixels on the screen.

A potential way to circumvent the problem, is to either:

  1. Make the font bigger.
  2. Make the font thicker
  3. Use anti-aliasing or some form of linear-interpolation between pixels (causes a considerable amount of blur when the sub-pixel problem arises).

I have opted for a blend of all three of these solutions.

References

@dobios dobios added bug Something isn't working wontfix This will not be worked on labels Dec 8, 2021
@astonedf
Copy link
Contributor

To try with the bold font in assets/05_fonts/PixelOperator-Bold.ttf

@astonedf astonedf linked a pull request Mar 22, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants