Short description of what this feature will allow to do:
The new fonts of Font Awesome are released (5.0) and it can be a great upgrade for the new EasyAdmin interface 馃槃
If you need some help, I can create a PR
In short: I want to do this ... but after 2.0 has been released.
FA 5 changes a lot of things from FA 4, so we must lay out a clear strategy. For example:
Lots of questions 馃槄
In short: I want to do this ... but after 2.0 has been released.
Won't it make the upgrade process much smoother If the fontawesome version switch also happens with 2.0?
FA 5 changes a lot of things from FA 4, so we must lay out a clear strategy. For example:
* Do we want to keep using icon fonts ... or should we switch to embedding SVG files?
According to the fontawesome website the better choice for this project seem to be icon fonts:
Best For
People who are used to Font Awesome's older versions.
People who projects already using Font Awesome 4.X.
People using content management systems and site building tools like Wordpress and Squarespace.
- FA 5 file sizes are HUGE and we distribute the assets with the bundle, how can minimize that size? How to include just the minimum assets?
- Also, there are different sets of icons ... I'd include just the core icons and not the brands, etc. Is this correct? Can we include all of them without complicating things much and increasing size much?
The regular and solid iconset seem to be the right choice. The brand icons can still be included later by the user, If they are really needed.
The font file size are okay I think.
If just the solid and regular iconset are included, only two font file will be loaded for most users:
fa-regular-400.eot 40KB
fa-solid-900.eot 197KB
Compared to the 4.x version:
fontawesome-webfont.eot 162KB
Thats an 80KB increase, but many many more better looking icons.
Asset size and performance is not extremely important for backend applications. Its a worthy trade off imo.
@RevisionTen thanks for taking a look at this. Slightly bigger file size is definitely not a problem for a backend.
We'll do this ... but after EasyAdmin 2.0 stable has been released. I cannot keep adding things to it. Otherwise, I'll never publish it.
Also, we must keep in mind that the upgrade to 5.0 must be transparent for users. Icons should keep working without making any change to the backend config.
Also, we must keep in mind that the upgrade to 5.0 must be transparent for users. Icons should keep working without making any change to the backend config.
Luckily they created a shim that makes all old icons work in fontawesome 5:
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#shims
So all thats needed to upgrade is to replace the old fontawesome CSS and icon font files with the new ones and include the extra CSS shim stylesheet.
2.0.0 has been released :tada:
I've created PR for this: #2699
Fixed by #2699 which was finally merged 馃帀
Most helpful comment
In short: I want to do this ... but after 2.0 has been released.
FA 5 changes a lot of things from FA 4, so we must lay out a clear strategy. For example:
Lots of questions 馃槄