barcode-font-generator

5.0.1 • Public • Published

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.

Package Sidebar

Install

npm i barcode-font-generator

Weekly Downloads

3

Version

5.0.1

License

GPL-3.0

Unpacked Size

192 kB

Total Files

29

Last publish

Collaborators

  • holgerwill