CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.95k stars 4.08k forks source link

Font rendering is blurry in IMGUI under WASM #73728

Open nornagon opened 1 month ago

nornagon commented 1 month ago

Describe the bug

On the WASM build, text in IMGUI UIs is blurry, almost like it's off by half a pixel or something.

Attach save file

N/A

Steps to reproduce

  1. Open https://nornagon.github.io/play-cdda/
  2. Create a new world
  3. Press f to open the "complete creating new world" prompt, which is IMGUI

Expected behavior

Font rendering should be ~identical

Screenshots

Screenshot 2024-05-12 at 15 42 21

Versions and configuration

Additional context

No response

Qrox commented 1 month ago

Probably the same problem as #73120.

db48x commented 1 month ago

I don’t see any blurriness in that screenshot. I’m looking at the red “Are you SURE” prompt, and all of the text is exactly aligned with the pixel boundaries. The strokes are all exactly one pixel wide, etc.

Qrox commented 1 month ago

@db48x If you look closely there are light red pixels around the vertical strokes of the characters.

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.