Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Font rendering is blurry in IMGUI under WASM

Open nornagon opened this issue 1 year ago • 1 comments

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

  • OS: Unix
    • OS Version:
  • Game Version: cdda-experimental-2024-05-12-0328 1a8080a [32-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth] ]

Additional context

No response

nornagon avatar May 12 '24 22:05 nornagon

Probably the same problem as #73120.

Qrox avatar May 13 '24 04:05 Qrox

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.

db48x avatar May 16 '24 09:05 db48x

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

Qrox avatar May 16 '24 09:05 Qrox

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.

github-actions[bot] avatar Jun 15 '24 10:06 github-actions[bot]

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

harakka avatar Aug 31 '24 16:08 harakka