Please, consider this is an old tweak to FabricJs library. It may be incompatible with current versions. This repo it´s not been mantained
A modified version of fabricjs Text Function to allow curved text.
Replace the function fabric.text with the located in this project.
Add a fabric.text element to your canvas setting the following additional parameters:
- curvedText: true,
- radius: integer //radius in pixels for the circumference
- spacing: integer // Spacing between letters
- reverse: boolean // Outer text or inner text. Default: true
- Add text background.
- Add clipping
- Resize bounding box to fit only text