KyoriPowered / adventure-webui

A web UI for Adventure
https://webui.advntr.dev/
MIT License
27 stars 16 forks source link

MOTD misalignment ingame versus web ui #115

Open clrxbl opened 2 years ago

clrxbl commented 2 years ago

image

The second line always seems to be misaligned by 1 or 2 spaces. MOTD used: https://webui.adventure.kyori.net/?x=er1kix1Jrk

rymiel commented 2 years ago

I wonder if this is because spaces aren't the same pixel width as they are in game?

clrxbl commented 2 years ago

I wonder if this is because spaces aren't the same pixel width as they are in game?

I imagine it's the pixel width of characters in general because of some form of antialiasing / shadow being applied to the font from the looks of it.

image Example: The letter "i" in the web-ui is 3 pixels wide while the ingame one is 2 pixels wide.

kezz commented 2 years ago

Perhaps related to #97?

clrxbl commented 2 years ago

Perhaps related to #97?

Doesn't look like it, even if I set the font to 30 or 15px, the weird anti-aliasing / shadow is still there.

kezz commented 2 years ago

i hate fonts

rymiel commented 2 years ago

@clrxbl Can you say which browser you specifically used? Because while I can reproduce this on every browser i tested, the amount of offset was different, which probably makes this issue even worse because it might depend on the browser image

clrxbl commented 2 years ago

@clrxbl Can you say which browser you specifically used? Because while I can reproduce this on every browser i tested, the amount of offset was different, which probably makes this issue even worse because it might depend on the browser image

Chrome Version 102.0.5005.63 (Official Build) (64-bit)