Skip to content

Holger-Will/barcode-font-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a simple way to create your own barcode fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published