FortAwesome / react-fontawesome

Font Awesome React component
https://fontawesome.com
MIT License
3.67k stars 264 forks source link

Using self-hosted icons with this library #481

Closed zavan closed 2 years ago

zavan commented 2 years ago

I think it's not possible to use self-hosted icons with this library, is that correct? Would this feature be considered?

Could we get files in this format in the pro zip file we download? Then it's just a mater of importing them as usual, right?

zavan commented 2 years ago

Related https://github.com/FortAwesome/Font-Awesome/issues/17236

zavan commented 2 years ago

Just found out that the files are present in the pro repo, so they can be downloaded and imported locally. Is this allowed?

https://github.com/FortAwesome/Font-Awesome-Pro/tree/master/js-packages/%40fortawesome

robmadole commented 2 years ago

@zavan yes, you can self-host the packages. We do encourage you to make sure they are protected and not available to the public as that would violate our license.

One quick note, the Font-Awesome-Pro repo is version 5 only. We will not be placing version 6 there.

benheymink commented 2 years ago

@robmadole Appreciate this issue is closed, but I'm trying to do the exact same thing to get the pro icons working on an internal app of ours... how does one go from the downloaded Pro package/s to using them locally in the manner detailed here: https://github.com/FortAwesome/Font-Awesome/issues/17236 (which is exactly how I'd like to use them!)

benheymink commented 2 years ago

Actually think I cracked it. Installed pro icons using private NPM registry key, then was able to run npm pack from within those locally installed packs to generate .tgz archives of the packages. I could then use these to install locally.