vis-network: Fontawesome 5 icon not getting render on network

I am using the network of Vis.js, previously for icon fontawesome 4.x was working fine, but after updating the fontawesome version to 5.x it’s giving a problem. I changed the icon code too, but still is not rendering the icon properly, I used the icon: {face: "Font Awesome 5 Free", code: "\ufbb", color: "#6cf7a2", size: 30} code for fontawesome and the output is following: image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

face: "'Font Awesome 5 Free'", // Notice the quotes, they're necessary if the name contains spaces.
code: "\uf2bb", // Notice the single back slash, \u**** is a Unicode escape, \\ is literal backslash.