Skip to content

JWebMP/FontAwesome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The JWebMP Plugin for the Font Awesome (5) Plugin

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.

Config for Pro

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);

Plugin Source (https://fontawesome.com/)

Built in collobaration with

alt BrowserStack

Releases

No releases published

Packages

No packages published

Languages