I have Textbox with text "This is test textbox", i want to set underline to only word "test" not the whole textbox text. How do i set underline to the substring?
var canvas = new fabric.Canvas('c');
var underlineText = new fabric.Textbox("This is test textbox", {
underline: true,
});
canvas.add(underlineText);
canvas {
border: 1px solid #999;
}
<script src="https://rawgit.com/kangax/fabric.js/master/dist/fabric.js"></script>
<canvas id="c" width="1000" height="500"></canvas>
As 2.0 is not ready yet for docs and examples, one thing that changed is that textDecoration has been removed.
In place we have: .underline, .overline, .linetrought
each of them with a true or false. issue
Thanks. Any help will be appreciated.