FontAwesomeFX 8.3 is there!

FontAwesomeFX 8.3 comes with extended CSS support.

Introducing two new CSS Properties to set the glyph name and size via stylesheet, while the value for the name and the value for the glyph size follows the common JavaFX CSS type definition:

-glyph-name: <string>
-glyph-size: <size>

You can now set all icon properties via CSS only:

/*
 .thumbs-up-icon{
   -glyph-name: "THUMBS_UP";
   -glyph-size: 6em;
 }

 .thumbs-down-icon{
   -glyph-name: "THUMBS_DOWN";
   -glyph-size: 6em;
 }
 */
FontAwesomeIcon thumbsUpIcon = new FontAwesomeIcon();
thumbsUpIcon.setStyleClass("thumbs-up-icon");

FontAwesomeIcon thumbsDownIcon = new FontAwesomeIcon();
thumbsDownIcon.setStyleClass("thumbs-down-icon");

updown

CSS style class support is also very handy when used in SceneBuilder or in FXML:

updownsb

<HBox>
  <children>
    <FontAwesomeIcon styleClass="thumbs-up-icon" />
    <FontAwesomeIcon styleClass="thumbs-down-icon" />
  </children>
</HBox>

Get 8.3:
Download Binaries: Download
Sources available at Bitbucket

Maven:

<dependency>
  <groupId>de.jensd</groupId>
  <artifactId>fontawesomefx</artifactId>
  <version>8.3</version>
</dependency>