Closed enzotib closed 3 years ago
Just a second after posting the issue, I found that
canvas.font = 'italic 12px serif'
works. But why the position of the string 'italic' is important? It is so in CSS?
I was about to answer that :)
Yeah, I don't really know. I found some help here: https://stackoverflow.com/questions/5158222/how-do-i-style-html5-canvas-text-to-be-bold-and-or-italic
I don't even know if it has to be that way in CSS as well.
Hi,
I am trying to build an image in which there is also some text. I need to write text in italic, I tried
and also tried
but I am not able to obtain italic.