ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.33k stars 254 forks source link

Handling wider unicode characters #161

Open bleakley opened 5 years ago

bleakley commented 5 years ago

Certain wide unicode characters, for example ⚔ (the crossed swords character U+2694) appear as about half their size relative to alphanumeric characters. There doesn't seem to be any configuration to display them at their full size. Some ideas:

ondras commented 5 years ago

Hi @bleakley ,

thanks for the report! Would you be willing to provide some examples regarding the incorrect rendering? My quick example at https://jsfiddle.net/nwu78s30/ shows proper character size (the same width as other characters, the main property of a monospaced font), at least on my Firefox / Ubuntu machine.