Please help me guys as soon as you can!!!
I am trying to print text from a given font on a 600 dpi printer that has been:
1. Created through a predefined LOGFONT structure
2. Selected into the Printer's Display Context
The point size of the font is calculated from the above, but its tiny, and when the characters print, you need an eye test! Here's my code below:
// Convert Logical Height to Point size
CDC* pDC = GetDC();
CFont* pOldFont = pDC->SelectObject(&tempFont);
int nPointSize = MulDiv((INT) tm.tmHeight - tm.tmInternalLeading, 72, pDC->GetDeviceCaps (LOGPIXELSY));
If you use the monitor's Display Context, the Point Size is calculated correctly , however on the printer its tiny. Any suggestions? Thanks.