/fabricText2

A modified version of fabricjs Text Function to allow curved text.

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Please, consider this is an old tweak to FabricJs library. It may be incompatible with current versions. This repo it´s not been mantained

fabricText2

A modified version of fabricjs Text Function to allow curved text.

Use

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

To do

  • Add text background.
  • Add clipping
  • Resize bounding box to fit only text