Easily add any font awesome icon into any section of your application.
Note : Font Awesome 5 Free only comes with Solid Style, but to support Pro all icons and styles are made available.
npm config set "@fortawesome:registry" https://npm.fontawesome.com/ npm config set "//npm.fontawesome.com/:_authToken" xxxxxxxx
Get token from https://fontawesome.com/docs/web/setup/packages#_1-configure-access
Example Usage
FontAwesome fa = new FontAwesome(FontAwesomeStyles.Regular,FontAwesomeIcons.cog);
FontAwesome faSolid = IFontAwesome.createIcon(FontAwesomeIcons.cog,FontAwesomeStyles.Solid);
FontAwesome faLight = IFontAwesome.createIcon(FontAwesomeIcons.cog,FontAwesomeStyles.Light);
FontAwesome faMask = IFontAwesome.createMaskIcon(FontAwesomeIcons.cog,FontAwesomeStyles.Light,FontAwesomeIcons.comment_alt,FontAwesomeStyles.Regular);
faSolid.spin().transform(FontAwesomeTransforms.Grow_3,FontAwesomeTransforms.Up_4).setStyle(FontAwesomeStyles.Regular).setSize
(FontAwesomeSizes.$4x).setIcon(FontAwesomeIcons.cogs);
Configuration
FontAwesomePageConfigurator.getConfigOptions()
.setKeepOriginalSource(true)
.setNestSVG();
FontAwesomePageConfigurator.setIncludeBrands(true);
FontAwesomePageConfigurator.setIncludeLight(true);
FontAwesomePageConfigurator.setIncludeRegular(true);
FontAwesomePageConfigurator.setIncludeSolid(true);
FontAwesomePageConfigurator.setIncludeAll(true);
//Config for your pro
FontAwesomePageConfigurator.setRootReferenceDir("path/to/pro/directory");
//Use CSS instead of new SVG
FontAwesomePageConfigurator.setFontAwesomeReferenceType(FontAwesomeReferenceType.WebFontCSS);