I'm using fabric.js in my site. suppose if I need to add any text in canvas, I write - like-
var text1 = new fabric.Text('Fabric', {
left: 90,
top: 570,
angle: -5,
fontFamily: 'Helvetica',
fontSize: 20,
fill: 'red'
})
but I need all available fonts (like - times new roman, Helvetica) in a list so that I can select the font at run time, I tried to google it but I got nothing. I wonder if anybody help me. Thank in advance.