Robert,
I'm still fighting with your suggestion. Here is a list what I did. Can you please look at it and tell me what's missing or what's wrong?
1. create a .png image
2. convert the image to svg
3. convert the svg to font TraficLight
4. copy folder fonts with 4 files - TraficLight.eot, TraficLight.svg, TraficLight.ttf and TraficLight.woff to folder WebAppBuilderForArcGIS\server\apps\apID\widgets\nameOfTheWidget
5. add css rule you posted above to style.css of my widget
@font-face {
font-family: 'TraficLight';
src: url('../fonts/TraficLight.ttf');
font-weight: normal;
font-style: normal;
}
6. to my widget.js add the code
var textSymbol = new TextSymbol('\0040', new Font("20pt", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_NORMAL, "TraficLight"));
graphic.setSymbol(textSymbol);
I am not sure if this process is right so I very appreciated your help.