It is “offline” in the sense that the icons are included in XWiki and requested from a URL on your XWiki installation. The files are included in a so-called “webjar” (font-awesome-4.7.0.jar
to be precise) that contains both the CSS and the font.
When using the Font Awesome icon theme, you can manually display any Font Awesome icon using the HTML that is normally used to display them as XWiki loads the full CSS of Font Awesome that includes all Font Awesome icons. You cannot display them using $services.icon.render
, though, this only works for icons that are listed in the icon theme. What you could do but what might cause problems on upgrades is to edit IconThemes.FontAwesome
to add your own mappings that would then be usable through $services.icon.render
. On an upgrade, XWiki will attempt a merge of any changes in this page with your changes, but this merge might fail when there are incompatible changes in XWiki. You’ll get a question during the upgrade what to do in such a case.
Icon themes exist to keep XWiki’s code independent of a specific icon theme and to allow users to switch between different icon themes.