Click to See Complete Forum and Search --> : IPAQ & East Asian languages


AKG_
March 16th, 2006, 03:57 AM
Hello,

I am writing a small program to send devanagari (Indian Language) unicode characters to a different application on iPAQ.

Does WinCE 3.0 or 5.0 support Indic Scripts unicodes(Hindi, Tamil etc.) ?

If I want to display some devanagari text in a Static Box then
TextOutW(...) function is enough to do this.. ?

sample code >>>>>>>>>>>>>>>

CFont font;
CDC *pDC;
LOGFONT lf;
pDC = staticBox->GetDC();
// create UNICODE font
memset(&lf, 0, sizeof(lf));
lf.lfHeight = MulDiv(50, ::GetDeviceCaps(pDC->m_hDC,LOGPIXELSX), 72);
lf.lfWeight =700;// FW_NORMAL;
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS;
wcscpy(lf.lfFaceName, _T("mangal")); //Devanagari Font
staticBox->CreateFontIndirect(&lf);

oldFont = pDC->SelectObject(&font);
::TextOutW(pDC->m_hDC,30,2,_T(" "), 2);
pDC->SelectObject(oldFont);

Could any one give some suggestion how to display devanagari unicode characters on iPAQ(WinCE 3.0 and 5.0)

Thanks for your answer
Anuj