Socket
Socket
Sign inDemoInstall

font-machine

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    font-machine

creates a stylesheet from otf and ttf font files


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Install size
22.0 kB
Created
Weekly downloads
 

Readme

Source

font-machine

quick and dirty command line tool for quickly creating a css stylesheet from a directory of TTF and OTF fonts. Not for production! It creates a new font-face definition for each file. You font-family name is the filename.

install

npm install -g font-machine

usage

font-machine fontDir output.css output.html [-r]

fontDir path to the directory with your fonts. .ttf, .TTF, and .otf files are supported.

second argument is the output css file. (default font.css)

third argument is the output html file. (default font.html)

-r will rename font-files and remove spaces and replace with underscores. By default, it will not rename files and warn you that some fonts may not work. Just make a copy of your font dir, rename and use that.

HTML file will just use each font with a <h1>. Quick way to check if everything worked OK.

licence

MIT

Keywords

FAQs

Last updated on 01 Jan 2015

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