snake icon indicating copy to clipboard operation
snake copied to clipboard

Game width is "jumpy" on Windows

Open epidemian opened this issue 5 years ago • 1 comments

This is how it looks on Chrome on Windows:

snake-score-moving

This problem was originally reported by @rosald on #2.

epidemian avatar Apr 24 '19 03:04 epidemian

@rosald, i've run the game on a machine with Windows and yeah, this issue is totally reproducible :/

I can't think of anything to do though. It seems to be related with the way Windows renders Braille characters. Other systems render all Braille characters with the same width (i had tested the game on Linux mostly, but also on macOS and Android), but Windows seems to render blank Braille character (U+2800) a bit narrower than other Braille characters (which have at least one dot). So it makes this jumpy effect at the of the game board as the snake moves sideways.

I'll leave this issue open for now, though i can't think of a way to fix it. The problem may be inherent to the way WIndows renders fonts... But maybe someone comes up with a solution :) ... If not, i'm going to close it as a wontfix :sweat_smile:


BTW, running this game on WIndows made me realize i had broken compatibility with IE. I fixed tha on 5af76fb7cef7316dba9130b2ebbacd4823fe6350. So thanks for the report! :relaxed:

epidemian avatar Apr 24 '19 03:04 epidemian

This issue is outdated. Since then, browsers have started escaping whitespace characters on the URL, making the game unplayable on the addressbar. So, the game being "jumpy" is no longer a relevant issue.

epidemian avatar Nov 07 '23 20:11 epidemian

20231114-160850 what a pity. imaginative project! pic is mac chrome

rosald avatar Nov 14 '23 08:11 rosald

@rosald thanks for the kind words :)

yeah, text rendering issues are a pain :sweat_smile:

epidemian avatar Nov 14 '23 17:11 epidemian