You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

barcode-font-generator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barcode-font-generator

create your own barcode font with this barcode generator

5.0.1
latest
Source
npmnpm
Version published
Weekly downloads
9
50%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • code128
  • code39
  • 2of5 interleaved
  • ean13 live example

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
switchvaluesdescription
-c, --codecode128,code39,2of5,ean13the encoding you want to use
-n, --nameSTRINGthe name you want give to the font
-h, --heightINTEGERthe height of one bar
-bl, --baslineINTEGERset the height if the numbers at the bottom of the codes. applys only to ean13 and 2of5 fonts so far.
-wn, --with-numbresdisplay 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.

Keywords

barcode

FAQs

Package last updated on 23 Nov 2018

Did you know?

Socket

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