In my application, FTGL renders unicode characters of true type fonts well except compound characters. Compound character is a combination of unicode consonant and vowel sounds.
For example, in an indic language Tamil, the following string input
"கா கி கீ கு கூ கெ கே கை கொ கோ கௌ"
is displayed as
in the openGL viewer.
output of some characters is not same as input.
Can anybody help on this?
my code snippet,
std::ifstream fontFile("latha.ttf", std::ios::binary);//tamil unicode font
if (fontFile.fail())
return NULL;
fontFile.seekg(0, std::ios::end);
std::fstream::pos_type fontFileSize = fontFile.tellg();
fontFile.seekg(0);
unsigned char *fontBuffer = new unsigned char[fontFileSize];
fontFile.read((char *)fontBuffer, fontFileSize);
FTBitmapFont* m_pFTFont = new FTBitmapFont(fontBuffer, fontFileSize);
m_pFTFont->Render("கா கி கீ கு கூ கெ கே கை கொ கோ கௌ");