diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..0abfaa6 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,34 @@ +Font Awesome Free License +------------------------- + +Font Awesome Free is free, open source, and GPL friendly. You can use it for +commercial projects, open source projects, or really almost whatever you want. +Full Font Awesome Free license: https://fontawesome.com/license/free. + +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) +In the Font Awesome Free download, the CC BY 4.0 license applies to all icons +packaged as SVG and JS file types. + +# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) +In the Font Awesome Free download, the SIL OLF license applies to all icons +packaged as web and desktop font files. + +# Code: MIT License (https://opensource.org/licenses/MIT) +In the Font Awesome Free download, the MIT license applies to all non-font and +non-icon files. + +# Attribution +Attribution is required by MIT, SIL OLF, and CC BY licenses. Downloaded Font +Awesome Free files already contain embedded comments with sufficient +attribution, so you shouldn't need to do anything additional when using these +files normally. + +We've kept attribution comments terse, so we ask that you do not actively work +to remove them from files, especially code. They're a great way for folks to +learn about Font Awesome. + +# Brand Icons +All brand icons are trademarks of their respective owners. The use of these +trademarks does not indicate endorsement of the trademark holder by Font +Awesome, nor vice versa. **Please do not use brand logos for any purpose except +to represent the company, product, or service to which they refer.** diff --git a/generate.py b/generate.py new file mode 100644 index 0000000..93ca557 --- /dev/null +++ b/generate.py @@ -0,0 +1,20 @@ +import os + +def make_file(directory, name, out): + out.write('\n'.format(name)) + for f in os.listdir(directory): + with open(os.path.join(directory, f), 'r') as fp: + name = os.path.splitext(f)[0] + data = fp.read() + start = data.find(''.format(name) + data[start:-6] + '\n') + out.write('') + +# Run this in Font-Awesome/advanced-options/raw-svg/ + +# with open("hass-fontawesome-brands.html", 'w') as out: +# make_file('brands', 'fab', out) +# with open("hass-fontawesome-regular.html", 'w') as out: +# make_file('regular', 'far', out) +# with open("hass-fontawesome-solid.html", 'w') as out: +# make_file('solid', 'fas', out)