FontAwesomeFX 8.10: The artefacts act
Recently I created a demo an wanted to use just one FontAwesome icon and I notices that I need to add the whole ~600KB package for that. Clearly the package size is driven by the all the contained True Type Font files:
de.jensd:fontawesomefx-fontawesomefx:8.9 | 571 KB |
So I thought about split the full package into separated artifacts per icon font: smaller footprint and easier to update (also the package versioning reflects the icon font version)
Coming with FontAwesomeFX 8.10
de.jensd:fontawesomefx-fontawesome:4.5.0 | 115.7 KB |
de.jensd:fontawesomefx-materialdesignfont:1.4.57 | 246.4 KB |
de.jensd:fontawesomefx-materialicons:2.1 | 92.2 KB |
de.jensd:fontawesomefx-octicons:3.3.0 | 29.9 KB |
de.jensd:fontawesomefx-weathericons:2.0 | 2.0 KB |
PLUS:
de.jensd:fontawesomefx-common:8.10 | 13.4 KB |
and optional:
de.jensd:fontawesomefx-controls:8.10 | 3.4 KB |
Usage
E.g. to use WeatherIcons in your app you just have to add
repositories { jcenter() } dependencies { compile 'de.jensd:fontawesomefx-weathericons:2.0' }
to your build.gradle and you are done with 16KB (font-pack + common) additional footprint.
You can run contained demo by calling: de.jensd.fx.glyphs.weathericons.demo.WeatherIconsDemoApp
Please give it a try and feed me back if it works!
Next steps are:
- rename it from FontAwesomeFX to e.g. IconsFX (in respect to the other supportet icon fonts) and
- focus on Java9 and JigSaw….
Here you can find the new bintray package.
Sources are here at Bitbucket
Report issues here
2 thoughts on “FontAwesomeFX 8.10: The artefacts act”