more barcode fonts

besides the code 128 font there are now two more barcode fonts, which are much easier to use than the code 128 font, because you don’t need special encodings to generate readable barcodes.

code 39

the code 39 font  can be used to encode the characters A-Z the digits 0-9 and the special characters +,-,*,/,%,$ and SPACE. The symbol * is used as a start and stop character.

Code 39 can only represent upper case character. So don’t forget to .toUpperCase() your String before using it.

Install the font using bower


bower install code-39-font

and then to encode a string in html just do

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

here is an example of the code-39-font in use

Interleaved 2of5

the interleaved 2of5 font can be used to encode the digit 0-9. Due to the nature of the encoding, only an even number of digits can be encoded. For an odd number of digits, a trailing zero can be used. The 2of5 standard does not define a mapping for the start and stop codes to certain ascii symbols, so i made the mappng up myself. In this font i use the :-charcater as  the start code and the ;-charcater as the end code.

Similar to the code-39-font and the code-128-font , the 2of5 font can also be installed via bower.


bower install 2of5-font

and then to encode a string in html just do

				<link rel="stylesheet" href="bower_components/2of5-font/2of5_all.css"/>
<div class="i2of5_XL">:123456;</div>

here is an example of the 2of5-font in use

Hinterlasse einen Kommentar