rot.js icon indicating copy to clipboard operation
rot.js copied to clipboard

Handling wider unicode characters

Open bleakley opened this issue 5 years ago • 1 comments

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:

  • If there is spacing between characters (due to hex layout, forceSquareRatio, or explicit spacing) display the characters at their full width when space is available.
  • Offer additional display options to either (a) display unicode characters at whatever reduced size is required to display them at their normal aspect ratio (this is the current default), (b) display them centered and cropped, or (c) compress them horizontally or vertically so that they take up the full space provided at a different aspect ratio.

bleakley avatar Apr 01 '19 15:04 bleakley

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.

ondras avatar Apr 04 '19 11:04 ondras