Adding and Controlling Overline, Strikethrough, and Underline Text Decorations in Fabric.js

Text decoration properties are straightforward to assign during IText initialization via the nested styles object. The top-level keys in styles represent zero-indexed line numbers, while each nested object uses zero-indexed character positions as keys, holding individual decoration boolean flags: overline, linethrough, and underline. The t ...

Posted on Tue, 06 Oct 2026 16:47:24 +0000 by laeelin