Sei sulla pagina 1di 8

What are Special Fonts?

Sometimes we required to display the data as barcode and in MICR fonts. These
fonts are not installed in the Application. We treat these fonts as special fonts.

How this works?


We need to install the fonts in the application using XML Publisher administrator.
And we need to assign the required font to a required field in the rtf and upload it to
the application. When we run the program the rtf checks for the fonts installed in
the application and it displays the data in a specified font.

Printing Special Fonts Using XML Publisher


Printing 128 Barcode:
This section describes how to implement 128 barcode using XML Publisher.
Install the barcode font in the local machine.
Create a RTF template and assign a 128 Barcode font to a required field.
Attach the rtf to the respective template definition.
Create font files for the required font using XMP Publisher
Create font mapping and assign created font file to it.
Pass this font mapping as font mapping set under FO Processing.
Below are the steps in detail to implement 128 barcode in XML Publisher Reports.
1. Install the barcode font in Windows\fonts.
We have the 128 Barcode available in different sizes, like small, medium, large..
They are
IDAutomationC128L.ttf
IDAutomationC128M.ttf
IDAutomationC128S.ttf
IDAutomationC128XL.ttf
IDAutomationC128XS.ttf
IDAutomationC128XXL.ttf IDAutomationC128XXS.ttf
Use any one of the above as per the requirement and install it in your machine

2. Create a RTF template and assign a 128 Barcode font to a required field.

3. Attach the rtf to the respective template definition.


Attach the developed rtf to the respective template definition as usual.
4. Create font files for the required font using XMP Publisher Administrator.
Navigation: XML Publisher Administrator-->Administration-->Font files-->Create Font File.
We need to create a font file in the application for required font .

Click on apply.
5. Create font mapping and assign created font file to it.
Navigation: XML Publisher Administrator-->Administration-->Font Mappings-->Create Font Mapping Set.

Above we can give any user friendly or business standard name for Mapping name and Code. Click on
Apply you will be navigated to the following form. Click on Create Font Mapping

Click on apply it creates the font mapping set under Font mapping Name Deloitte Fonts as follows.

6. Pass the font mapping name as a font mapping set under FO Processing.
Navigation: XML Publisher Administrator-->Administration-->Configuration-->FO Processing.

Displaying Multiple Special fonts at the same time


If we need to install more than one special font we need to create a font file and attach it under the same
Mapping name.
So we will be having only one mapping name, and multiple font Mappings.
Let us install two special fonts say, 128 barcode and MICR.
Follow the steps 1 to 4 to for both fonts.
Then create Font mapping name as mentioned in step 5 and create 2 font mappings one for 128 barcode and
one for MICR as follows.

Potrebbero piacerti anche