Socket
Socket
Sign inDemoInstall

font-awesome-svg-png

Package Overview
Dependencies
32
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    font-awesome-svg-png

Font Awesome split to individual SVG and PNG files of different sizes along with Node.JS based generator


Version published
Weekly downloads
1.3K
increased by143.3%
Maintainers
1
Install size
18.2 MB
Created
Weekly downloads
 

Readme

Source

Font-Awesome-SVG-PNG

This project provides a Font-Awesome build split to individual SVG and PNG files of different sizes along with Node.JS based generator to generate any other colors and sizes combinations.

What is Font-Awesome?

Font Awesome is a full suite of 675 pictographic icons for easy scalable vector graphics on websites, created and maintained by Dave Gandy. Stay up to date @fontawesome.

Get started at http://fontawesome.io!

License

  • The Font Awesome font is licensed under the SIL OFL 1.1:
  • Font-Awesome-SVG-PNG is licensed under the MIT license

How to use?

You may use already generated icons in white and black directories. You can also generate your own set:

Note: you need to have a command rsvg-convert available.

Install via npm: npm install -g font-awesome-svg-png.

Install via Bower: bower install font-awesome-svg-png.

The following command will generate a red set of icons at sizes of 128 and 256 pixels in directory red: font-awesome-svg-png --color red --sizes 128,256

PNG creation

PNG creation depends on rsvg-convert command being in the path.

You can skip PNG creation with --no-png.

Windows support

  1. Install node.js: https://nodejs.org/en/#download
  2. Open cmd.exe in the Font-Awesome-SVG-PNG directory
  3. Execute npm install .
  4. Download https://osspack32.googlecode.com/files/rsvg-convert.exe
  5. Add the directory of rsvg-convert.exe to your PATH
  6. Try it by executing node font-awesome-svg-png --color gray --sizes 16

Mac OS X support

sudo port install librsvg
... or ...
brew install librsvg

That should give the necessary rsvg-convert command.

WARNING: Starting from librsvg 2.40.11 and onwards rsvg-convert produces empty images due to a breaking change that was introduced. At moment there's no workaround but to revert to librsvg 2.40.10 and below.

Linux support

For Debian rsvg-convert in located in the librsvg2-bin package.

sudo apt-get install librsvg2-bin

Authors

FAQs

Last updated on 05 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc