I am placing a watermark on a tif (ImageEnVect) before opening the print preview dialog.
My code calls:
Vect.Proc.TextOut (Align_Text_Horz_Center,VOffset,'Watermark',AFont,35);
After the above call, the font in other forms within project become distorted. After debugging, I found commenting out this line resolves it:
// ProcBitmap.Canvas.Font.Handle := OldFontHandle;
The above line is at the end of TextOut in ImageEnProc.
I tried all kinds of variations in my code to resolve this without commenting out the above line, but found this was the only remedy. Not sure what the long-term ramifications are resource wise.
Thanks,
Kevin
P.S. I am on the 5.2 post Beta. |