A collection of all Font Awesome Free SVG icon paths as Java enum constants -- ready to be used in any Java program.
- 🎨 All Font Awesome Free icons as Java enums: Solid, Regular, and Brand
- 🔗 No dependencies
- 📐 Designed as a companion library for SvgNode for use in JavaFX applications -- but works in any Java context
| Dependency | Version |
|---|---|
| Java | 25+ |
<dependency>
<groupId>tools.maran</groupId>
<artifactId>svg-fontawesome</artifactId>
<version>1.1.0</version>
</dependency>implementation 'tools.maran:svg-fontawesome:1.1.0'import tools.maran.svg.fontawesome.FASolid;
String path = FASolid.HOME.path();import tools.maran.svg.SVG;
import tools.maran.svg.fontawesome.FARegular;
import tools.maran.svg.fontawesome.FASolid;
SVG svg = FASolid.HOME;
// Switch from solid to regular SVG.
svg = FARegular.HOME;Usage with SvgNode
import tools.maran.svgnode.SvgNode;
import tools.maran.svg.fontawesome.FASolid;
SvgNode node = new SvgNode(FASolid.HOME.path(), 32);<?import tools.maran.svgnode.SvgNode?>
<?import tools.maran.svg.fontawesome.FASolid?>
<SvgNode size="32" color="RED">
<path>
<FASolid fx:constant="HOME"/>
</path>
</SvgNode>- Update Font Awesome Free from 7.2.0 to 7.3.1
- Initial release (Font Awesome Free 7.2.0)
This project includes SVG icon data from Font Awesome, licensed under CC BY 4.0.
See also: Font Awesome License
