I2of5 Barcode Font
I2of5 (Interleaved 2 of 5) is a widely used, high-density barcode supporting numeric characters. The data to be encoded must contain an even number of digits as each two-digit numbers is uniquely represented by a set of bars and spaces in the barcode. The character '0' is added to the beginning if the data does not contain an even number of digits.Barcode Font Names and Sizes
ConnectCode I2of5 barcode supports up to seven different heights. These barcodes with seven different heights are provided in seven fonts with different names. The barcodes names are appended with characters like "S1" or "S2" etc... with each one of them representing a different height. The list below illustrates the seven different fonts that are supplied for I2of5.- CCodeI2of5_S1
- CCodeI2of5_S2
- CCodeI2of5_S3
- CCodeI2of5_S4
- CCodeI2of5_S5
- CCodeI2of5_S6
- CCodeI2of5_S7
- CCodeI2of5_HS3
I2of5 Character Mappings (Interleaved 2 of 5)
All characters supported by the barcode is as shown below. All of them have a simple a direct mapping.
|
|
Using the I2of5 barcode font
For example, to encode the data "123456", you can key in the following in your text editor and choose the I2of5 barcode font.Input: {,BX}
Output:
For example, to encode the data "56789", you can key in the following in your text editor and choose the I2of5 barcode font. As I2of5 barcode only allow even number of numeric digits, the above data should be treated as "056789".
Input: {%cy}
Output:
If you are using the Encoder, it will automatically put in the start/stop characters for you and allow you to choose the optional check character. On top of that, automatic padding of '0' to make the data contain even number of digits will be carried out.
Calculation of I2of5 Check Digit
For example if the data "12345" is to be encoded as a barcode. The check digit is calculated as follows.
Data | 1 | 2 | 3 | 4 | 5 |
Starting from the last digit, multiply by 3 followed by 1. | |||||
*3 | *1 | *3 | *1 | *3 | |
Sum : | (1*3) + (2*1) + (3*3) + (4*1) + (5*3) = 33 | ||||
If Sum Modulo 10 equals 0, the result is 0. Otherwise the result is 10 - (Sum Modulo 10) | |||||
Modulo 10 : | 10 - (33 % 10) = 7 | ||||
Data to be encoded | 123457 | ||||
Mapping | 12 = ',' , 34 = 'B' , 57 = 'Y' |
The characters "{,BY}" can then be keyed in to the text editor with the appropriate font selected to generate a I2of5 barcode with check digit.