• Ahh, sorry about that - it looks like the IDE is struggling to convert Unicode properly. If you escape it (eg by pasting this into Node.js or your web browser's console):

    console.log("한글 표시를\n시험중입니다.\n대한민국\n한글을 사랑합니다.".split("").map(c=>"\\u"+c.charCodeAt().toString(16).padStart(4,0)).join(""))
    

    It'll give you the escaped unicode:

    "\ud55c\uae00\u0020\ud45c\uc2dc\ub97c\u000a\uc2dc\ud5d8\uc911\uc785\ub2c8\ub2e4\u002e\u000a\ub300\ud55c\ubbfc\uad6d\u000a\ud55c\uae00\uc744\u0020\uc0ac\ub791\ud569\ub2c8\ub2e4\u002e"
    

    And you can try that with:

    g.setFontIntl().setFontAlign(0,0).drawString("\ud55c\uae00\u0020\ud45c\uc2dc\ub97c\u000a\uc2dc\ud5d8\uc911\uc785\ub2c8\ub2e4\u002e\u000a\ub300\ud55c\ubbfc\uad6d\u000a\ud55c\uae00\uc744\u0020\uc0ac\ub791\ud569\ub2c8\ub2e4\u002e",88,88);
    

    And when I do that I see the issue with text alignment (attached) - so thanks! I think that's all I need to get started fixing this (but that means it'll need a new firmware version - it's not JS)


    1 Attachment

    • korean.png
About

Avatar for Gordon @Gordon started