BUG: SetTextJustification Fails to Justify on Some Printers (168426)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q168426 SYMPTOMS
The SetTextJustification() function does not affect text output on some printers even though it works correctly on a screen device context or A PostScript printer.
RESOLUTION
This bug exists in some printer drivers shipped with Windows NT 4.0. One workaround to this problem would be to use the ExtTextOut() function to precisely specify the advancement of the string's characters via the lpDX parameter. The lpDX parameter specifies the inter-character spacing of each character in the string. Write a function that is similar to SetTextJustification(), in that it identifies the break characters of a string. It needs to expand the advancement of each break character by an appropriate amount that would result in the desired justification of the string.
Another potential workaround is to compose the text of the printed page in a 1 bpp memory device context, and transfer the result to the printer device context via the BitBlt() function. This approach has two disadvantages: it restricts the available fonts to the system fonts, and it increases the size and print time of the print job because of the bitmap.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbBug kbnofix kbprint KB168426 |
---|
|