npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

bc-font-utils

v2.0.0

Published

Bulletcode font utilities

Downloads

12

Readme

Bulletcode font utilities

A collection of tools for creating and converting web fonts.

Commands

bc-build-icons [--rebuild] CONFIG [OUT_PATH]

Create TTF and WOFF2 fonts from SVG icons using the given configuration file and optional output path. It defaults to the directory in which the configuration file is located. A CSS file containing icon classes (with a configurable prefix) is also generated.

When the --rebuild option is specified, cached SVG images are re-generated even if they already exist.

Currently the tool can import SVG icons from the lucide-static package. It can be used to create a customized version of the static icon fonts which contain only icons which are needed.

The following modules and tools are used:

  • oslllo-svg-fixer - to trace input SVG images to single path SVG images suitable for using in fonts
  • svgicons2svgfont - to convert individual SVG images to a SVG icon file
  • svg2tiff - to convert the SVG icon file to a TTF font
  • ttfautohint - to generate automatic hinting for the TTF font
  • wawoff2 - to compress the TTF font to WOFF2 format

On Windows, the ttfautohint.exe binary included in this package is used. On other platforms, ttfautohint must be installed and available in the PATH.

bc-build-icons CONFIG IN_PATH [OUT_PATH]

Convert TTF fonts to WOFF2 fonts with automatic hinting using the given configuration file. The input path containing TTF files must be specified. The output path is optional and it defaults to the directory in which the configuration file is located.

Configuration

Example configuration file for bc-build-icons:

options:
  fontName: lucide
  fontHeight: 1000
  descent: 150
  normalize: true

traceResolution: 800

autohint: true

outputTTF: false

cssClassPrefix: icon

icons:
 - calendar
 - file
 - list-todo
 - users
 - ...

The configuration file should use the YAML format. It must contain at least the list of icons to include in the generated fonts. All other parameters are optional.

  • options are described in the svgicons2svgfont API documentation; the fontName is also used as the file name for generated files
  • traceResolution is the resolution used for tracing single path SVG images
  • autohint enables or disables automatic hinting
  • outputTTF can be set to true to keep the TTF file in the output directory
  • cssClassPrefix is used in the generated CSS file (defaults to icon)

Example configuration file for bc-convert-fonts:

autohint: true

outputTTF: false

fonts:
  noto-sans-400: NotoSans-Regular
  noto-sans-400-italic: NotoSans-Italic
  noto-sans-700: NotoSans-Bold
  noto-sans-700-italic: NotoSans-BoldItalic
  ...

The configuration file must contain a mapping between output file names and input file names. Other parameters are optional.

  • autohint enables or disables automatic hinting
  • outputTTF can be set to true to keep the TTF files in the output directory

Credits

Portions of this software are copyright (C) 2021 The FreeType Project. All rights reserved.