Open In App

Fabric.js Text Class Complete Reference

Last Updated : 07 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Fabric.js is an open-source JavaScript canvas library, that provides the interactive object model built on top of the canvas element. It is also an SVG-to-canvas & canvas-to-SVG parser.

The Text class in Fabric.js provides the text abstraction by using the fabric.Text objects, that allow working with text in an object-oriented fashion. Usually, the native canvas methods only permit to fill or stroke text on a very low level. After instantiating the instances of fabric.Text, it is possible to work with text, as similar to work with any other Fabric object such as move, scale, changes their properties, etc. In addition to this, the Text class also provides a much richer functionality in comparison to the Canvas class.

Members:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads