Installing a Font Using XML Publisher Administrator

XML Publisher 5.6 has a new tab called Administration; this replaces the xdo.cfg configuration file. 

Now fonts can be uploaded and stored in the database instead on the file system. Under the Administration tab there are sub tabs: 


Configuration, Font Mappings and Font Files and Currencies. Follow below steps to install a font:
1.    Log in as XML Publisher Administrator.
2.    Navigate to Administration->Font Files->Create Font File.
3.    Fields are Font Name and File. For Font Name choose any descriptive name. Ex: GnuMICR File will browse your PC to locate the font file. Upload the .ttf file you want to upload.
4.    Navigate to Font Mappings->Create Font Mapping Set.
5.    Mapping name is the name you will give to a set of fonts. Ex: GnuMICR
6.    Mapping code is the internal name you will give to this set. Ex: GnuMICR
7.    Type: 'PDF Form' for PDF templates. 'FO to PDF' for all other template types.
8.    Create Font Mapping (this allows you to add fonts to a set).
9.    Font Family is the exact same name you see in Word under Fonts. If you don't use the same name the font will not be picked up at runtime.
Ex: For Check printing of GnuMICR font put the name as GnuMICR
10. Style and weight must also match how you use the font in windows. Normal and Normal are good defaults.
11. Navigate to Configuration General-> FO Processing->Font Mapping Set. This can also be done at data def and template level under Edit Configuration. Hierarchy is Site-> Data Def -> Template.
12. Select your new mapping set.
13. Make sure the font is not referenced under File->Properties->Custom in the RTF template file.
14. Under General set a Temporary Directory. The font will be downloaded here under /fonts to be used at runtime, the first time the font are used.
15. Upload a template that uses your special font and test using preview or by submitting a concurrent request.