Re: Scaling Text Problem
Do you have a sample EMF I can look at? you can send it to rspilon at
hotmail.
"RMurdock" <topochicho@rocketmail.com> wrote in message
news:op.t5d6wseq45rr60@amandus.sdicgm.com...
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 code
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 seems to scale
so far, except the text. The text seems to scale to one of the 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 drawing.
/****************************************************/
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
Roman");
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> wrote:
Have you tried creating your fonts using the final stPrintDlg.hDC just
before printing? (this is assuming you have access to the font creation 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...)