Printing Enhancements

Top 

 

True Type Fonts

True Type font support has been added to the pcl, pdf, and postscript drivers.   Most True Type fonts that are licensed for embedding and support Unicode characters can be configured in ufparam.txc file's [ttmap] section.  See the Server Configuration chapter for information about configuring TrueType fonts, and the Fonts chapter for caveats and recommendations.

 

Unicode Character Support

In conjunction with the TrueType font enhancement, UnForm can now produce Unicode text output in two ways: via a text command using an embedded TrueType font, or via the textimage() function, which uses Image Magick to generate an image of a Unicode string.  

 

See the Text command for information about Unicode text.  There is a ttprint.rul file in the samples directory which can print all characters supported by a configured font.

 

The second technique for embedding Unicode text is to use a new function, textimage().  This function uses Image Magick to produce an image of text data, using a specified font.  For small amounts of printed Unicode text, using images rather than embedded fonts can produce smaller output streams.

 

See the textimage() function in the Programming Code Blocks, Internal Functions chapter, for more information about this function.