1. specify your font size in points and convert to pixels
separately for each HDC (printer & screen):
ht_pixels=ht_points*GetDeviceCaps(hdc,LOGPIXELSY )/72;
2. make sure you have LOGFONT set up correctly, so that
rotation is consistent:
LOGFONT lf;
lf.lfClipPrecision=CLIP_LH_ANGLES;
If you don't do this, the rotation of the font may be different
for printer & screen, depending on the font. Read the
documentation for further details.
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Airborne Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here
I am trying to use Print Preview in an MFC app to display a graphic image
(drawn via GDI calls). The image is being drawn correctly but it is _very_
small (the problem).
What do I need to do to get the image to fill the print preview sheet?
I suspect that I have to do some type of conversion from screen resolution
to printer resolution before drawning the image in preview (as well as
print) mode.
Kendall Schmidt
3. print/print preview for bitmaps
4. WM_KEYDOWN: what is code 91? (iPaq)
6. ?How to create Web-based pdf form to send email with completed- form as attachment
8. Will this CD-ROM drive work w/NeXTCube?
9. Print and print preview problem (ASSERT error when allocating GDI font resource in OnBeginPrinting)
10. HELP!!!! MFC PRINT/PRINT PREVIEW
12. Printing / Print Preview problems
13. Printing and Print Preview discrepency