Drawing text on canvas

I need to draw text in a canvas, but the current implementation has fillTextsurpassed many of the functions that I need (for example, the ability to draw multiple lines).

Since I need to copy pixels from the canvas later, it needs to be drawn in the canvas, it cannot be an element spanabove the canvas.

The ability to make it editable is a plus, but not required.

Is there a library that provides advanced features for drawing text in canvas? (It should work at least on IE9, Firefox, Chrome and Opera)

+5
source share
1 answer

FLOW Canvas Text jquery.

, <span>, . span ( ), element.innerHTML element.innerText . / . ,

<span id="myspan"> lorem ipsum </span>

spanText = document.getElementById("myspan").innerText;
0