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

MOTD misalignment ingame versus web ui #115

Open
clrxbl opened this issue Jun 9, 2022 · 7 comments
Open

MOTD misalignment ingame versus web ui #115

clrxbl opened this issue Jun 9, 2022 · 7 comments

Comments

@clrxbl
Copy link

clrxbl commented Jun 9, 2022

image

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

@rymiel
Copy link
Member

rymiel commented Jun 9, 2022

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

@clrxbl
Copy link
Author

clrxbl commented Jun 9, 2022

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
Copy link
Member

kezz commented Jun 9, 2022

Perhaps related to #97?

@clrxbl
Copy link
Author

clrxbl commented Jun 9, 2022

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
Copy link
Member

kezz commented Jun 9, 2022

i hate fonts

@rymiel
Copy link
Member

rymiel commented Jun 9, 2022

@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
Copy link
Author

clrxbl commented Jun 9, 2022

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants