IDAutomation.com, Inc. IDAutomation.com, Inc.
Font Encoder

Java Font Encoder with Barcode Fonts

Format data for IDAutomation barcode fonts with the Java Barcode Font Encoder Class Library.

Encode, then apply the font

The class library formats your data. When the barcode font is applied to the returned text, an accurate barcode is displayed.

  • Code 128 (Code128 recommended, plus Code128a, b and c) with the IDAutomationC128 font
  • Code 39 and Code39Mod43, Code 93, I2of5 and I2of5Mod10, EAN13, EAN8, UPCa and UPCe
  • IntelligentMail, the Universal Barcode Font Advantage (IDAutomation_Universal_ methods) and GS1 DataBar (IDAutomation_DataBar_ methods)
  • Parameters: ApplyTilde, DataToEncode, N_Dimension (2, 2.5 or 3) and IncludeCheckDigit
Java font encoder flow: data is formatted by the LinearFontEncoder class into text that displays as a Code 128 barcode when the IDAutomationC128 font is applied

A Code 128 example

Examples are provided for Code 128, DataBar Stacked Omnidirectional, the Universal font with ApplyTilde, and IntelligentMail.

String text = LinearFontEncoder.Code128b("Java");
// show text in a label or document and set the font to IDAutomationC128

Setup

  1. Create the directoryCreate the directory com\idautomation at the root of the classpath.
  2. Add the classAdd LinearFontEncoder.class to that directory.
  3. Call the methodsCall the class methods to format the data for the appropriate font.
  4. Apply the fontInstall the barcode font and set it on the control that shows the returned text.

Frequently asked questions

What does the Java font encoder do?

It formats data for barcode fonts before printing. It is royalty-free with the purchase of a Developer License to one of IDAutomation’s barcode fonts.

How do I install it?

Create the directory com\idautomation at the root of the classpath, add LinearFontEncoder.class to it, then call the class methods to format the data for the font.

What does the demo do?

The demo class shows a popup and is for testing only. After purchase, replace it with the licensed version.

What about 2D fonts?

2D symbologies are supported through separate packages, each with its own libraries, examples and JavaDoc in a Developer Tools zip file.

What about Oracle EBS and XML Publisher?

Those users are directed to an Oracle BIP tutorial on the font encoder page at IDAutomation.

Print barcodes from Java with fonts

A Developer License of any barcode font includes the encoder.

FONT ENCODER