Fonts to write barcodes:
- Libre Barcode 39
- Libre Barcode 39 Text
- Libre Barcode Extended 39
- Libre Barcode Extended 39 Text
To use these wrap the text to encode into *
asterisks e.g.: *HELLO WORLD*
See the Wikipedia Code 39 page for more info.
- Libre Barcode 128
- Libre Barcode 128 Text
To use these you have to use an encoder like this (see also #14).
See the Wikipedia Code 128 page for more info.
You'll need git
, bash
, python3.6
, node
(=nodejs e.g. v10.16.3 is confirmed to work, use nvm
to manage node versions) with npm
, bower
and ttfautohint
(if not in your distribution I suggest: ttfautohint-build). Maybe you'll have to install the python3-venv
module.
Are dependencies missing? Please, let me know.
# fetch the sources
path/to $ git clone [email protected]:graphicore/librebarcode.git
path/to $ cd librebarcode
# best start with an virtual environment
path/to/librebarcode $ python3 -m venv venv
path/to/librebarcode $ . venv/bin/activate
# installs fontmake and fontbakery
(venv) path/to/librebarcode $ pip install -r requirements.txt
# installs javascript dependencies
(venv) path/to/librebarcode $ npm install
(venv) path/to/librebarcode $ bower install
# now build:
(venv) path/to/librebarcode $ ./app/bin/buildAll
# the fonts should be in the librebarcode/fonts directory now
# The UFO sources should be in the sources directory
The fonts are licensed under OFL. The barcode font generator and code 128 encoder scripts are GPL3+.