2

I am working with Fabric Text. I need a lot of fonts for my application. I am intending to apply custom font for those, which are not not supported by default.That's why i need the default supported font list. How can i get them ?

Mahbubur Rahman
  • 4,961
  • 2
  • 39
  • 46

1 Answers1

2

Well you cannot get the list of fonts. Check this link. But if you want to use your custom fonts than it is possible. Have a look at this link to know how to use custom fonts in fabricjs

Community
  • 1
  • 1
Harsh Makani
  • 761
  • 5
  • 11
  • Fabric js support all fonts html5 canvas does. Is it? I have no issue with implementing custom font. – Mahbubur Rahman Oct 21 '15 at 13:19
  • I agree with the response @HarshMakani. But to clarify a bit as to why the list of fonts is not available is because the "list" would depend on the default fonts available to a particular browser/operating system combination of the user. Because this combination set is so vast and unpredictable it's really hard to put out a specific list. This link does list some of the common options however. http://www.w3schools.com/cssref/css_websafe_fonts.asp – PromInc Oct 23 '15 at 14:48