Giter Site home page Giter Site logo

2of5-font's Introduction

2of5-font

the 2of5 font is a barcode font encoding the interleaved 2of5 barcode standard.

available sizes

The font is available in 5 different height to width ratios. (Usually i use code39_XL)

if you need other height to width ratios, you can generate your own font using the barcode font generator

name height to width ratio font size to get 1px wide bars
2of5_S 1:1 14px
2of5 2:1 28px
2of5_L 3:1 42px
2of5_XL 4:1 56px
2of5_XXL 5:1 70px

You can download the font in .ttf, .woff, and .svg format.

install

You can install it as any other font. To use it as a webfont, you can install with bower:

bower install --save code-39-font

and the in your .html:

<link rel="stylesheet" href="bower_components/code-39-font/code39_all.css"/>
<div class="code_39_XL">*Test*</div>

usage

an explicit encoding is not necessary. To create a barcode. Simply write your string to be encoded with this font. 2of5 can only encode digits 0-9 and only an even number of digits. The standard does not specify a mapping of the start and stop symbols to a certain ascii code. So i made the mapping up myself. The start code is : and the stop code is ;

so to encode the sequence 123456 just write :123456; and print it with the 2of5 font.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.