-
From the navigation menu, select .
-
Go to the Icons section, and click to upload a new set of icons.
The Upload icons dialog opens.
-
From Font family name, enter the name of your icon set. For
example,
My custom icons (see the screenshot below).
-
From TTF or WOFF2, select the TrueType Font (TTF) or WOFF2 font
file to upload.
-
From CSS file, select the
.css file containing
the CSS classes mapped with the icon names.
-
From Icons prefix, specify the prefix common to the class icons
that you want to retrieve in the
.css file.
Data Perspective Studio first uses this prefix to filter the .css file and retrieve only the
matching class icons. For example, if you enter icon- as prefix, it
will retrieve icon-Wikipedias_W, icon-Wikipedias_W1,
and icon-test from the .css file.
.icon-Wikipedias_W:before {
content: "\e901";
}
.icon-Wikipedias_W1:before {
content: "\e902";
}
.icon-test:before {
content: "\e900";
}
.someotherthing{}
Then Data Perspective Studio uses this prefix to generate its own dictionary using the prefix and the class icon
names.
-
Click Upload.
Result: Your font family is now available in your Data Perspective:
- From the Icons section in the left panel, you can then select
your font family and view its configuration.
- From the Export configuration dialog, when you
Export a Data Perspective, you can select your font family in the Custom icons section.
- From the Icon picker, which opens when you select an icon for a
Data Perspective element (visualization, screen, sidebar menu), you can see your font family and its set
of icons.
