|Hi to all,
I am facing a strange problem, i had asked for help in the forum few days before. But due to certain delays i was unable to show the code. Here is the code. My Problem is with hindi fonts.
When i substitute the the LOGFONT.lfHeight with 0(Zero) then everything works fine, But when i change the size of lfHeight to anything greater or lesser than zero, the Hindi fonts is displayed very small. How to solve this issue.
HWND target = GetDlgItem(hwnd,IDC_STATIC1);
HFONT hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT);
GetObject(hFont, sizeof(LOGFONT), &lf);
lf.lfHeight = 0;
cFont = CreateFontIndirect(&lf);
SetWindowText(target,_T("C:\\Program Files\\অভিধান: ইংরেজী\\सरकारी &&"));
sorry for posting twice.
modified on Thursday, June 9, 2011 1:32 PM