Skip to content

About

A collection of all Font Awesome (https://fontawesome.com) Free SVG icon paths as Java enum constants - ready to be used in any Java program.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

SVG Font Awesome

A collection of all Font Awesome Free SVG icon paths as Java enum constants -- ready to be used in any Java program.

FontAwesome

Features

  • 🎨 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

Installation

Requirements

Dependency Version
Java 25+

Maven

<dependency>
    <groupId>tools.maran</groupId>
    <artifactId>svg-fontawesome</artifactId>
    <version>1.1.0</version>
</dependency>

Gradle

implementation 'tools.maran:svg-fontawesome:1.1.0'

Usage

Pure Java

import tools.maran.svg.fontawesome.FASolid;

String path = FASolid.HOME.path();

With the SVG type

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

Java

import tools.maran.svgnode.SvgNode;
import tools.maran.svg.fontawesome.FASolid;

SvgNode node = new SvgNode(FASolid.HOME.path(), 32);

FXML

<?import tools.maran.svgnode.SvgNode?>
<?import tools.maran.svg.fontawesome.FASolid?>

<SvgNode size="32" color="RED">
    <path>
        <FASolid fx:constant="HOME"/>
    </path>
</SvgNode>

Changelog

Version 1.1.0

  • Update Font Awesome Free from 7.2.0 to 7.3.1

Version 1.0.0

  • Initial release (Font Awesome Free 7.2.0)

Acknowledgements

This project includes SVG icon data from Font Awesome, licensed under CC BY 4.0.

See also: Font Awesome License

About

A collection of all Font Awesome (https://fontawesome.com) Free SVG icon paths as Java enum constants - ready to be used in any Java program.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages