coin3d中文字符显示
代码如下:
pFont = new SoFont;
pFont->size.setValue(30.0);
pSepSon->addChild(pFont);
pFont->name.setValue("simkai.ttf");
SoText2* pText2 = new SoText2;
pSepSon->addChild(pText2);
pText2->string.setValue("aaaaassss哇嘎的");
运行显示出来的汉字是乱码,在网上查找说是自动支持freetype,所以分别下载了freetype6.dll ,freetype.dll放在运行目录下还是不行,不知道coin3d是否有方法支持中文显示