
Font mapping defines which fonts are used in a form if a specified font is not available. That is, you can specify which font to substitute for an unavailable font.
Font mapping information on the server is specified within XML tags in the custom_xfa.xci file. You must specify the font mapping for whichever destination it applies to (for example, PDF, PCL, PostScript, or Zebra).
Example: Font mapping tags located in an XCI file
This sample code shows font mapping tags located in an XCI file.
<map>
<!-- [0..n] Attributes: from='', to='' [0..n] -->
<equate from="Courier_*_*" to="Courier New_*_*" force="0" />
<equate from="CourierNew_*_*" to="Courier New_*_*" force="0" />
<equate from="Courier-New_*_*" to="Courier New_*_*" force="0" />
<equate from="MyriadPro_*_*" to="Myriad Pro_*_*" force="0" />
The map element contains font mapping information. Each font map is defined within an equate tag. The XML syntax for a font map is as follows:
<equate from="[ ]" to="[ original font_weight_posture ]"/> substitute font_weight_posture
The font information for the original font and substitute font is defined as follows:
<Fontname_weight_posture>
Fontname is the name of the font as it appears in the font list in LiveCycle Designer, weight determines whether the font is bold. Valid values are bold, normal, or * (wildcard), posture determines whether the font is italic. Valid values are italic, normal, or * (wildcard).
To map fonts on the server:
Navigate to the /<DIR_GLOBAL>/AdobeDocumentServices/lib directory.
Map the fonts in the custom_xfa.xci file.
If the custom_xfa.xci file does not exist, copy the xfa.xci file and rename it to custom_xfa.xci.
The following XML code shows an example of an XCI file that contains font mapping information.
<zpl>
<fontInfo>
<defaultTypeface writingScript="Roman">CG Triumvirate</defaultTypeface>
<defaultTypeface writingScript="Japanese">Kozuka Mincho Pro-VI R</defaultTypeface>
<defaultTypeface writingScript="SimplifiedChinese">Adobe Song Std L</defaultTypeface>
<defaultTypeface writingScript="TraditionalChinese">Adobe Ming Std L</defaultTypeface>
<defaultTypeface writingScript="Korean">Adobe Myungjo Std M</defaultTypeface>
<map>
<equate from='MS Gothic_*_*' to='Kozuka Gothic Pro M_*_*' force="1"/>
</map>
</fontInfo>
</zpl>