FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.5k stars 12.2k forks source link

Possible to add Class ('fas', 'fal', etc.) in icons.yml file? #12522

Closed varunsharma27 closed 6 years ago

varunsharma27 commented 6 years ago

It would be great if you guys could add/allow to add the Class or any discreet property that would give away class in the icons.yml. Because currently there is no way to what what class the icons belongs to without manually checking for it. For our Issue : https://github.com/farbelous/fontawesome-iconpicker/issues/58 What I'm doing with grunt is : Downloading the icons.yml while while building the project to keep our project automatically in sync with FA icons and have been able to distinguish 'fas' and 'fab' by categories but I'm helpless to distinguish 'far'. Is there any alternate file available?

tagliala commented 6 years ago

Hi!

Thanks for being part of the Font Awesome Community.

I'm helpless to distinguish 'far'.

The .yml file contains the styles property with a list of all available styles

Example: https://github.com/FortAwesome/Font-Awesome/blob/master/advanced-options/metadata/icons.yml#L44

Does that help?

varunsharma27 commented 6 years ago

Actually it does! Thank you!

varunsharma27 commented 6 years ago

@tagliala Just wondering, is there any such list for Pro fonts as well?

tagliala commented 6 years ago

@varundbest yes, there is 👍

varunsharma27 commented 6 years ago

@tagliala Seems like this list contain pro icons as well? Which would actually be a problem as I'd need separate list (Or a way to differentiate) for Pro icons as not all our users will have Pro license.

tagliala commented 6 years ago

@varundbest are you a Pro Backer?

If yes, you can check by yourself in the Pro repository

If you aren't, it does not report if an icon is part of the free repo or it isn't. Imagine it as a comprehensive list of all icons with solid, regular, and light in styles.

You can write your own parser to parse them both and mark icons as "free" if they are in both files

varunsharma27 commented 6 years ago

@tagliala I'm not a Pro backer. Well, even if its just for free icons then also I would be fine it seems. So I'd assume a list of pro fonts isn't available?

tagliala commented 6 years ago

So I'd assume a list of pro fonts isn't available?

We have the same file (icons.yml) which containis a list of all FA5 Pro icons

varunsharma27 commented 6 years ago

But that would be a private repo I'd assume? Thanks for the help btw!

tagliala commented 6 years ago

Yes, it is a private repo: Font Awesome 5 Pro is a commercial software.

If you need an up-to-date icons.yml with all the pro icons to provide a service to your FA5 Pro customers, please drop a line at hello@fontawesome.com

Please also link to this issue

joshualyon commented 6 years ago

It seems as though the icons.yml in the Font-Awesome-Pro repository hasn't been updated for 7+ months. It looks like it was last updated as of 5.0.0-rc5 so a number of icons are missing from the yml file. Is this the icons.yml for Pro being stored in a different location now that 5.1.0 has been officially released? Or is the file just outdated?

edit: It looks like the /metadata/icons.yml is the old file and the file is now being stored at the path /advanced-options/metadata/icons.yml