Font size problem ???
C / C++ / MFC
1
Posts
1
Posters
5
Views
1
Watching
-
Hello I have some problem about font size. I create font like this int m_Size=18; // point size convert to logical size int LogicalInch=pDC->GetDeviceCaps(LOGPIXELSY); int DeviceUnits=::MulDiv(m_Size,LogicalInch,72); m_font.CreateFont(DeviceUnits,0,0,0, m_bold,m_italic,m_underline,m_strike, DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE, "Cordia New"); pDC->SelectObject(&m_font); pDC->TextOut(10,10,"Hello world"); When display text I've found that it doesn't show correct size ( smaller than ) compare with Netscape. What's wrong ????? Thanks