Open myevan opened 5 years ago
Hi @myevan ,
thanks for the report! It would be great if you managed to send a PR, provided you were already able to fix the issue.
hi @ondras, thank you for your answer. i'm a beginner in javascripting and will need some time for making the PR : )
rot.js has a bug when drawing CJK characters in node (ok in web)
1) First bug is rot.js does not support CJK unicode blocks
2) CJK characters are full-width characters, but they are strangely printed in node. In english, it's like this:
Hello
->Hello
orH e l l o
(안녕
->안녕
or안 녕
)node english (ok)
node korean (bug)
node japanese (bug)
3) rot.js needs special work to draw CJK characters correctly and I tried to fix the bug.
https://github.com/myevan/js-ecs/commit/8bf688bf0c69aa07c7860dc816a4014b3d03d896
node korean (fixed)
node japanese (fixed)
web korean (no problem)
thanks.