Hi, I'm the author of a little utility for printing Zip disk labels,
ZipLabel 1.1 ( http://www.geocities.com/CapeCanaveral/6552/ziplabel.html ).
I am having one heck of a time figuring out why one of my TextOut
calls displays just fine, but will not print on a PostScript or PCL printer.
(But my GDI printer seems just fine!)
Setup: Win95 (or Win32s in Win31), no MFC, straight Win32 code...
Basically, I draw a 50% gray filled rectangle, create a 9pt Arial Bold
TT font rotated 270 deg, set the text color to white, text background to
transparent, and TextOut it...
code snippet:
FillRect(hdc, &rect, (HBRUSH)GSO(GRAY_BRUSH));
SetTextColor(hdc, RGB(255,255,255));
SetBkMode(hdc, TRANSPARENT);
ft=EzCreateFont(hdc, "Arial Bold", 90, 90, 0, TRUE, 2700); //from
// Petzold Win95, with param added for rotation (2700)
SelectObject(hdc, ft);
TextOut(x,y,"100");
DeleteObject(SO(hdc, GSO(SYSTEM_FONT));
If you are interested, just d/l the ZipLabel program and try printing
on a PS printer and you'll see what I mean! I admit I am not checking the
DevCaps, but if PS2 cannot generate a rotated font then Adobe has a LOT
of explaining to do. ;)
Any help would be much appreciated by me and my users with HP printers!
I'd appreciate it if you could email me your responses, as my ISP has
a very poor news server.
-Earle F. Philhower, III