Closed Geistyp closed 9 years ago
bool ofxTrueTypeFontUC::loadFont(string filename, int fontsize, bool _bAntiAliased, bool makeContours, float _simplifyAmt, int _dpi) { mImpl->implLoadFont(filename, fontsize, _bAntiAliased, makeContours, _simplifyAmt, _dpi); }
lost return value
//------------------------------------------------------------------ ofPath ofxTrueTypeFontUC::getCharacterAsPoints(wstring src) { #ifdef TARGET_WIN32 ustring character = util::ofxTrueTypeFontUC::convUTF16ToUCS4(src); #elif defined(__clang_major__) && (__clang_major__ <= 3) wstring character = util::ofxTrueTypeFontUC::convToUCS4<wchar_t>(src); #else wstring character = src; #endif int charID = mImpl->getCharID(character[0]); if(mImpl->cps[charID].character == mImpl->kTypefaceUnloaded) mImpl->loadChar(charID); return mImpl->getCharacterAsPointsFromCharID(charID); } ofPath ofxTrueTypeFontUC::getCharacterAsPoints(string character) { return getCharacterAsPoints(util::ofxTrueTypeFontUC::convToWString(character)); }
"ustring" undefined simple fixed by add "typedef basic_string ustring;" before this function there is a ustring typedef before, but don't know why compiler miss this.
Platform win7 x64, vs2012, of 0.8.0dev
Thank you for letting me know. I've tested modified master branch on Windows 8.1 x64, vs2012, of 0.8.4. Please try it.
lost return value
"ustring" undefined simple fixed by add "typedef basic_string ustring;" before this function
there is a ustring typedef before, but don't know why compiler miss this.
Platform win7 x64, vs2012, of 0.8.0dev