CleverRaven / Cataclysm-DDA

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

Font rendering is blurry in IMGUI under WASM #73728

Open nornagon opened 6 months ago

nornagon commented 6 months 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 6 months ago

Probably the same problem as #73120.

db48x commented 6 months 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 6 months ago

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

github-actions[bot] commented 5 months 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.

harakka commented 3 months ago

This still reproduces. Probably tied to rest of imgui font rendering issues.