Curved Text around an arc or circle in canvas using Fabric.JS

Viewed 142

I am currently working in Fabric JS. I am drawing text in Canvas using Fabric JS. Here is my code:

text = new fabric.IText('Lorem Ipsum', {
    fill: 'black',
    fontSize: 50,
    id: 'text'
});

canvas.add(text);
canvas.centerObject(text);
canvas.requestRenderAll();

How can I curve this text around an Arc or Circle like this:

enter image description here

or this:

enter image description here

And also, how can I change the Arc value of text by using a Range Input?

0 Answers
Related