Monday, February 9, 2009

Ghostscript Font alignment problems

We use Ghostscript for creating PDF documents, it is a much cheaper solution than buying special printer drivers, Adobe Distiller or any other. We changed Distiller for Ghostscript because of many reasons, but first of all bugs and control problems from other soft. But this is a different story.

Ghostscript uses free URW fonts for PDF creating and as we found out, theese fonts are buggy! As there won't be soon any update, we had to find another solution. We convert postscript (ps) files to PDF, so the solution was to embed the used font in the postscript instead of using the built in fonts.

In windows: printer preferences -> TrueType font: Download as SoftFont

From C/C++ set PRINTER_INFO_2 pDevMode->dmTTOption = DMTT_DOWNLOAD;

Good luck

No comments: