让OGRE支持中文(二) ----支持TTF字体了[52]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 nethz 的 blog

                 

            ftresult = ft_load_char( mttfmsg->face, unicodemap[dwchar-161], ft_load_render );//读取字体

            if (ftresult)

            {

                // problem loading this glyph, continue

                logmanager::getsingleton().logmessage("info: cannot load character " +

                    stringconverter::tostring(unicodemap[dwchar-161]) + " in font " + mname);

                return false;//如果错误跳过

本文关键:让OGRE支持中文(二) ----支持TTF字体了
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top