devicefuture / atto

The new BASIC computer that runs in your browser!
https://atto.devicefuture.org
MIT License
47 stars 8 forks source link

Add emoji support and rendering fixes #22

Closed James-Livesey closed 3 years ago

James-Livesey commented 3 years ago

Fixes #21. This pull request adds emoji support, allowing users to insert multi-codepoint characters. It also modifies the syntax highlighting system and canvas rendering system to do so.

Emojis are scaled by a scale factor of 0.65 to ensure that they do not leave rendering artifacts when rendering on top of an old representation of a cell (a dirty cell).

James-Livesey commented 3 years ago

Try it here (run when deployed or change URL to local server): Test case