I am trying to draw text along a curve on html5 canvas. To do this, I need to break the input text into component characters that can be individually rotated and translated, etc. Text break is easy for English. Given the input string s, s[i]gives the i-th character. But this does not work for non-English strings. I have a jsfiddle illustrating a problem: http://jsfiddle.net/c6HV8/ . Please note that the script looks different in Chrome and IE at the time of this writing. To find out what the problem is, think that you have non-English text in the line s. Create the node text you are going through s. Then create node text for eachs[i]and display text nodes adjacent to each other. Now compare the results. They are not the same. How can I split non-English text into component characters in javascript so that both results are the same?
s
s[i]
भाईसाब:) , , , fillText createText ( ). , fillText createText , , . , , ( , : ).
fillText
createText
. :
. , , , . ; .
, . , .
Source: https://habr.com/ru/post/1526404/More articles:Why are several click events triggered when using ngTouch? - javascriptC ++ ++ operator overloading - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1526401/vim-remap-control-commands-to-space-commands&usg=ALkJrhgAtzJ3zCZ_M94HBTtEQXIO8Tj2FAneed a simple way to create a comparator class used for sorting - java.Net Управление памятью приложений - memory-managementWhat is uuid ossp in postgres - uuidIE 11 renders CSS differently from other browsers - htmlмаркер Google Maps, определенный в макете XML - androidDisable Spring Boot AutoConfiguration for transitive dependencies - springbuffer length for lua wirehark - luaAll Articles