Creative Commons badges, license Buttons, etc. (https://licensebuttons.net/).
⚠️ Consolidation/Update in progress. This repository is in a state of flux.
The Creative Commons team is committed to fostering a welcoming community. This project and all other Creative Commons open source projects are governed by our Code of Conduct. Please report unacceptable behavior to conduct@creativecommons.org per our reporting guidelines.
We welcome contributions for bug fixes, enhancement and documentation. Please
follow CONTRIBUTING.md
while contributing.
This is a script to generate Creative Commons icon badges in png format in a
variety of color schemes. These icons can then be served by a web server. It is
located at scripts/genicons.py
.
-
Assuming the repository is on Debian
-
Install Python 3 and required Python 3 packages:
sudo apt-get install gir1.2-pango-1.0 python3-gi-cairo
-
Install CC Icons font
mkdir -p ~/.fonts ln -sf ${PWD}/www/cc-icons.ttf ~/.fonts/
Execute with Python 3:
python3 scripts/genicons.py
This will generate the icons in the directory www/i
directory.
- Style/Syntax
- Dependencies
- Pycairo is a Python module providing bindings for the cairo graphics library (Overview — Pycairo documentation).
- PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more (Overview — PyGObject).
- PangoCairo is used to load the system fonts and check if the "CC Icons" font is available. See PangoCairo.FontMap - Interfaces - PangoCairo 1.0.
- The icons, images, and logos contained within this repository are for use under the Creative Commons Trademark Policy (see Policies - Creative Commons).
- The icons, images, and logos are not licensed under a Creative Commons license (also see Could I use a CC license to share my logo or trademark? - Frequently Asked Questions - Creative Commons).
- The GLYPHICONS FREE, below, are licensed separately.
are released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0). The GLYPHICONS FREE can be used both commercially and for personal use, but you must always add a link to GLYPHICONS.com in a prominent place (e.g. the footer of a website), include the CC-BY license and the reference to GLYPHICONS.com on every page using icons.