Skip to content

Using Automation Tasks Library - Fonts#

The Automation Task Libraries support the use of custom icons. These icons can be generated from SVG files using the "Generator IoT" ⧉. If you use the package packer tool included in the generator, this process is automated.

AutomationLibraryFontFiles Object#

Property Description Notes
Woff Base64 content of the .woff file Mandatory/Optional, String
Woff2 Base64 content of the .woff2 file Mandatory/Optional, String
Truetype Base64 content of the .ttf file Mandatory/Optional, String
OpenType Base64 content of the .eot file Optional, String
Svg Base64 content of the .svg file Optional, String

Note

Woff, Woff2 and TrueType can be used individually but browser support may be limited. It is recommended that these three formats are provided.
OpenType and SVG are optional because they are only necessary for older versions of Internet Explorer and Safari.

One possible example:

{
"font": {
    "name": "testtasksiot",
    "fonts": {
      "opentype": "SEyduqj8WcRLbrDYdeJeFQlM ... YXNrcy1jb25uZWN0LWlvdC1zbS1zY2FubmVyc3RhdGVjaGFuZ2VkAAAA",
      "woff": "l9jgOJYKRJ0oKf5KFBjhguGBPHykltpiX3oqhVHsd11B ... X7EtOP/xVUSGqvP423SkDryz2Bwhk5Ujep2AVvFOduInHbJQ==",
      "woff2": "pa+wD8lMSoFRKGgz2sllUeW1s+EjIUK ... tcp1SMtEsiZBhFCOdyzKA88+Hf8CkDa8TI8FzBMqPs4glKJOWeflARkIrcAr3rym6VLGAAA=",
      "truetype": " zdC10YXNrcy1jb25uZWN0LWlv ... sbXRhc2tzLWNvbm5lY3QtaW90LXNtLXNjYW5uZXJzdGF0ZWNoYW5nZWQAAAA=",
      "svg": "M1NzUuNiA2MzcuOCA2MzcuNCA1NzYuMiA2MzcuNCA1MDAuM … MDAxTDgwMCA1MDBINzEyLjZ6IiAvPgogIDwvZm9udD4KPC9kZWZzPgo8L3N2Zz4K"
    },
    "icons": {
      "icon-test-tasks-connect-iot-lg-equipmentandsetupconfiguration": "\\e000",
      "icon-test-tasks-connect-iot-lg-extensionssetup": "\\e002",
      "icon-test-tasks-connect-iot-lg-logmessage": "\\e004",
      "icon-test-tasks-connect-iot-lg-scannerstatechanged": "\\e008"
    }
  }
}