4

How can I use characters like ö and é in konva.Text?

Bert Jan
  • 41
  • 2
  • Bert - could you explain further what issues you are having - there are lots of people here ready and able to help but it is polite to be a little more specific in your question. – Vanquished Wombat Feb 06 '20 at 17:38

2 Answers2

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
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