Re: Scaling Text Problem
I have no access to the rendering code at all, and the rendering code is=
not setup to render asymetricly.
I am actually doing all of the above. Sometimes I am calling drawing co=
de that draws directly to the DC I create, and other times I am playing =
EMFs that have been pre-created. So far everything is standard GDI. We=
deal with text, lines, and several varation of raster. Everything seem=
s to scale so far, except the text. The text seems to scale to one of t=
he aspect ratios, but not the other.
Using a little EMF diagnostic program I have, I was able to deconstruct =
an example EMF back to source code and cut out an example of the text dr=
awing.
/****************************************************/
hRegion = CreateRectRgn(0,0,801,4401);
ExtSelectClipRgn(hDC, hRegion, RGN_COPY);
DeleteObject(hRegion);
SetROP2(hDC, R2_COPYPEN);
SetBkMode(hDC, TRANSPARENT);
SetTextColor(hDC, RGB(0,0,0));
SetTextAlign(hDC, TA_NOUPDATECP | TA_LEFT | TA_BASELINE);
hObj[4]=CreateFont(-809,353,-900,-900,400,0,0,0,0,0,0,0,2,"Times New R=
oman");
SelectObject(hDC, hObj[4]);
const int Dx_17[]={ 637, 491, 246, 440, 245 };
ExtTextOutW(hDC, 100,799,0,NULL,L"APlot",5,Dx_17);
/****************************************************/
On Tue, 22 Jan 2008 16:42:29 -0600, Rene Pilon <rspilon@hotmail.com> wro=
te:
Have you tried creating your fonts using the final stPrintDlg.hDC just=
before printing? (this is assuming you have access to the font creatio=
n et
al)
It would probably help how you use the final stPrintDlg.hDC - are you
printing an image, metafile, or are you rendering directly to that DC =
via
api calls ( ie creating fonts , textout etc...)