question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consolidate FontAwesome dependencies

See original GitHub issue

PreferencesFX uses both ControlsFX and FontAwesomeFX. ControlsFX provides a thin wrapper for the FontAwesome TrueType Font. As far as I can tell, PreferencesFX doesn’t use fonts specific to FontAwesomeFX.

As a consequence, projects that use PreferencesFX will get two copies of “fontawesome-webfont.ttf”:

165548 Sun Nov 01 13:43:28 PST 2020 org/controlsfx/glyphfont/fontawesome-webfont.ttf
 99468 Sat Jan 12 20:40:14 PST 2019 de/jensd/fx/glyphs/fontawesome/fa-brands-400.ttf
 30560 Sat Jan 12 20:40:14 PST 2019 de/jensd/fx/glyphs/fontawesome/fa-regular-400.ttf
114928 Sat Jan 12 20:40:14 PST 2019 de/jensd/fx/glyphs/fontawesome/fa-solid-900.ttf
165548 Sat Jan 12 20:40:14 PST 2019 de/jensd/fx/glyphs/fontawesome/fontawesome-webfont.ttf

After refactoring KeenWrite in an attempt to consolidate the TTF files (i.e., I removed all references to FontAwesomeFX in favour of using ControlsFX exclusively), I was surprised to see FontAwesomeFX still in use. Gradle’s dependency trace showed that PreferencesFX had the two references.

What do you think of revising PreferencesFX to use only the version of FontAwesome icons that is bundled with ControlsFX to avoid duplication?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
shoanikicommented, May 8, 2021

Annnd it’s happened, just tried to add PreferencesFX to my project and I can’t because FontAwesomeFX was only on jcenter. Please consider making a release without that dependency.

(If this project really only requires two icons, might it be possible to mark the font dependency as optional and let applications provide their own icons if they want?)

0reactions
dlemmermanncommented, Apr 26, 2021

All of my projects use Ikonli and I do not care much about what ControlsFX uses. But we could make an exception in this case because there are only two icons used anyways: for the undo / redo buttons. If you want to you can submit a PR that changes that. Ideally very soon because on May 1st this project’s build pipeline breaks because of bintray stopping its services.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependencies - Next Right Now - GitHub Pages
Vendor-related dependencies are listed per-vendor, in their respective “How to use” guide. Table of contents. Dependencies. FortAwesome/FontAwesome.
Read more >
fontawesome/schematics · Issue #83 · FortAwesome/angular ...
Describe the solution you'd like: Is there a possibility to add @fontawesome/schematics for angular? To use ng add fontawesome or ng add ...
Read more >
Using A Package Manager | Font Awesome Docs
Cache Your CI Dependencies. For those using npm or yarn package managers, you can use the Font Awesome packages to easily keep your...
Read more >
How to install font-awesome in Visual Studio 2017 using ASP ...
Navigate to Dependencies > npm · Right-Click font-awesome > Open in File Explorer · Go in to the css folder · Copy the...
Read more >
How To Use Font Awesome 5 with React - DigitalOcean
The recommended way to use Font Awesome icons is to import them one by one so that your final bundle sizes are as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found