Less than 1 week –
Less than 10 hrs/week –
Need someone to advise me on an MFC application that uses CreateFontIndirect and DrawText.
Below is one of the routines.. The font is coming out wrong size.
I believe lfHeight is being set wrong.
void SelectFont(CItem &item, CLabel &label)
//choose the font
CString szFontName = item.GetFontName();
// Strip out the leading "INTERNAL*"
szFontName = szFontName.Mid(10);
m_pLF->lfHeight = (long)(-item.GetFontSize() * theMachine.GetDotsPerMm()) * 254 / 720;
m_pLF->lfWeight = FW_NORMAL;
m_pLF->lfWeight = FW_BOLD ...