Anyone by chance have any luck implementing fontawesome pro icons in a diagram? I was shown how to use the fontawesome free library icons like this:
g.append(
new
dataviz.diagram.TextBlock({
text: String.fromCharCode(0xf005) +
" "
+ dataItem.firstName +
" "
+ dataItem.lastName,
x: 85,
y: 20,
fill:
"#fff"
,
fontFamily:
"FontAwesome"
}));
... but this doesn't work:
g.append(
new
dataviz.diagram.TextBlock({
text: String.fromCharCode(0xf82c) +
" "
+ dataItem.firstName +
" "
+ dataItem.lastName,
x: 85,
y: 20,
fill:
"#fff"
,
fontFamily:
"FontAwesome"
}));
FontAwesome Icon Cheatsheet: https://fontawesome.com/cheatsheet/pro/regular