We use a custom Matomo font in our UI to show icons. You can find the font in the repository as part of the Morpheus theme.
You can find a list of all available icons by accessing your Matomo using below URL. Make sure to replace {REPLACE WITH YOUR MATOMO DOMAIN} with the domain/path to your Matomo. For the URL to work you need to have the development mode enabled and have at least admin access.
https://{REPLACE WITH YOUR MATOMO DOMAIN}/index.php?module=Morpheus&action=demo#icons
The available icons will be shown in the bottom of the page. Each icon has a CSS class name which starts with icon-. To enable the development mode you can run this command (don't do this in a production environment):
./console development:enable
To use an icon, simply add the name of class for the icon to an element like this:
<span class="icon-add"></span>
Follow below steps to add, change or remove an icon.
IcoMoon - Free or Font Awesome (depending on which one looks better in the app)font directory and the selection.json to plugins/Morpheus/font.woff2 version of the font as it is not included automatically.
woff2_compress e.g. via the woff2 debian package or similar packages for other distributions or compile it yourself as explained on https://github.com/google/woff2.woff2_compress matomo.ttfmatomo.woff2\e609. You can find the correct value for this from the style.css file of the extracted zip file. Simply search for the icon name there to find the correct value.url('plugins/Morpheus/fonts/matomo.woff2?rzeu9j') could become url('plugins/Morpheus/fonts/matomo.woff2?gt43xz'). The cache buster string can be any six digit random alphanumeric string as long as it's different from the previous one. Providing a new cache buster value will invalidate any old versions of the font in browser caches and force the new font to be used../console cache:clear.https://{REPLACE WITH YOUR MATOMO DOMAIN}/index.php?module=Morpheus&action=demo#icons and check if the icon shows up correctly.