Install the Barcode Fonts on RedHat Linux

1. Download "linuxbarcodefonts.zip" to your Linux Home folder.

2. Launch the "Terminal" application and enter the following command in your Home folder to unzip the "linuxbarcodefonts.zip" file.


	unzip linuxbarcodefonts.zip		
	


The unzipped package will be placed in the "linuxbarcodefonts" folder of your Home folder. It contains all the True Type Fonts (ttf), Open Type Fonts (otf), PostScript Fonts (pfa, pfb), Web Open Format Fonts (woff/woff2), console-based Barcode Font Encoder "barcodecmd", bulk barcodes generating scripts and a "Resource" folder. The "Resource" folder contains the source files and resources required to embed ConnectCode's barcode fonts engine into different tools and frameworks such as Microsoft Reporting Services, React, Angular, WebAssembly, .NET, .NET Core, Java, JavaScript, TypeScript, Oracle, Android and Azure.

3. Click on the "File Manager" icon on the Desktop and navigate to the "$HOME/linuxbarcodefonts" folder. Double click on the "ConnectCode39_S3_Trial.ttf" file. A font window will be launched to display a preview of the font. Click on the "Install" button on the top right hand corner to install the font.



You can proceed to click on other fonts (.ttf) in the folder to install them individually. The registered package contains a full suite of barcode fonts to ensure adherence to all requirements required by the auto-id industry. Alternatively, you can also copy the all the fonts into "~/.fonts/" (or "~/.local/share/fonts") in the user's home folder. Use the "fc-cache" command to update the font information cache, as in the following:


	fc-cache ~/.fonts/				
		


To install the barcode fonts for all users, you need to login as root and create a folder under "/usr/share/fonts". For example, "/usr/share/fonts/barcode". Copy the barcode fonts into the created folder and enter the following command in the console.


	fc-cache -f /usr/share/fonts/barcode					
		


4. Next, we are going to test the barcode fonts in a Linux desktop application. Launch "LibreOffice Writer" from the Ubuntu desktop. Enter "*12345678*", select the characters and change the Font to "CCode39_S3_Trial" (the font name is a short form of the file name "ConnectCode39_S3_Trial"). Make sure that you do not select the final hidden character (added by "LibreOffice Writer" for indicating end of line). Finally, set the Font Size to "24".

Other barcodes such as Code128, UPCA, EAN13, I2of5, ITF14, EAN8, UPCE, Industrial2of5, Modified Plessy, Code93, EXT2/5, GS1 Databar14, and UCCEAN (GS1 128) require a more complex check character to be added. This can be easily generated using the Linux Console Barcode Font Encoder.




Linux Barcode Fonts