Customizing the font index file for xml2afp

The sample font index file for xml2afp is provided in /usr/lpp/psf/xmltransform. The samples include a outline_font_index and a raster_font_index that you use to map XML font names to both outline FOCA fonts and raster fonts in the font path.
Note: If you are using OpenType fonts, the font index files are not necessary.

A font is referenced in XSL-FLO using these attributes:

  • family
  • size
  • style
  • weight
Font index files describe AFP fonts using these attributes. In addition, a map is defined that maps unicode code points into AFP code points.

The font index file consists of a sequence of key and value pairs, separated by whitespace (such as a space, tab, or a newline). Comments can be inserted anywhere between the delimiters /* and */. You can also use // to indicate that the rema