JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q37617F
  • License GPL-3.0

create your own barcode font with this barcode generator

Package Exports

  • barcode-font-generator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (barcode-font-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

barcode-font-generator (barf)

this is a barcode fonts generator. You input the name of the font-family you like, the height of one bar, and the encoding you want. Supported encodings are:

Installing

Install it globally with npm

npm install -g barcode-font-generator

Usage

the command line interface is called barf. use it like this:

barf -n "Super_EAN_Font" -h 60 -c "ean13" -bl 10 --with-numbers
switch values description
-c, --code code128,code39,2of5,ean13 the encoding you want to use
-n, --name STRING the name you want give to the font
-h, --height INTEGER the height of one bar
-bl, --basline INTEGER set the height if the numbers at the bottom of the codes. applys only to ean13 and 2of5 fonts so far.
-wn, --with-numbres display numbers underneath the bars

The command creates a folder with the fonts in .svg, .ttf, .woff and .eot format. You will find an example html file using the font in that folder as well.