The document discusses different options for using icons in user interfaces, including icon themes, icon libraries, and icon formats. It provides details on several popular icon libraries such as Font Awesome, Material Design icons, and Glyphicons in terms of their launch date, number of icons, format, and licensing. It also compares image, font, and SVG icon formats and provides examples of using different icon themes and libraries in code. The document concludes with recommendations for choosing, extending, and migrating icon solutions.
14. Format Comparison
Image Font SVG
Support All No support for Opera Mini IE9+
Scalability Fixed / Raster Scalable / Text Scalable / Vector
HTTP Requests Solo / Sprites Char / Font Solo / Sprites
File Size
Depends +
Multiple resolutions
Smaller Depends
Load Resource Resource Resource / Inline
Browser Styling No Limited Extended
Animations No Limited Extended
Accessibility Alt Title / Ligatures Title / Desc
16. Provide a script service that is using a
predefined variable mapped on multiple icon
sets
Icon Theme
example
## General settings
xwiki.iconset.type = font
xwiki.iconset.ssx = IconThemes.FontAwesome
xwiki.iconset.jsx = IconThemes.FontAwesome
xwiki.iconset.render.wiki = {{html
clean="false"}}<span class="fa
fa-$icon"></span>{{/html}}
xwiki.iconset.render.html = <span class="fa
fa-$icon"></span>
## Mapping
home = home
wiki = globe
space = folder
page = file-o
check = check
add = plus
anchor = anchor
terminal = terminal
list = list-alt
branch = code-fork
down = arrow-down
up = arrow-up
left = arrow-left
right = arrow-right
arrows = arrows-alt
21. Custom
Icon Sets
Use icon sets generators (Icomoon, Fontello,
etc.) and mix and match icons from different
sets (thenounproject, materialdesignicons,
etc.)
CSS or SVG sprites (svg-sprite, sprity, etc.)
25. References
● XWiki Icon Theme Application
● Vector Icons Roundup
● Glyph Search
● Seriously, Don’t Use Icon Fonts
● Inline SVG vs Icon Fonts
● Should I use SVG, Icon Fonts, or Images?
● Ten reasons we switched from to SVG
● Great Icon Debate: Fonts Vs SVG
● Death to Icon Fonts
● Ditching Icon Fonts for SVG