How can I use characters like ö and é in konva.Text?
Asked
Active
Viewed 116 times
2 Answers
2
I have tried konva.Text
within a demo: https://jsfiddle.net/64Love07/1/
Such special characters could be directly put in plain texts and actually I am still not sure what challenges within your situation. Addtionally, some extra information could be helpful if this demo included answer still could not solve your problem perfectly.

千木郷
- 1,595
- 2
- 19
- 30
-
1Hi, actually - i mean how can I use specials characters with the format like √ in KonvaJS. – Bert Jan Feb 29 '20 at 10:59
1
Use String.fromCharCode(insert_code_here)
to have text with these special characters.
For example, set the text
attribute to String.fromCharCode(8730)
to have √ in the Konva text.
To produce "ö and é" use:
String.fromCharCode(246) + " and " + String.fromCharCode(233)

nsnave
- 71
- 1
- 6