void LLFontGL::reset() { if (!mIsFallback) { // This is the head of the list - need to rebuild ourself and all fallbacks. loadFace(mName,mPointSize,sVertDPI,sHorizDPI,mFontBitmapCachep->getNumComponents(),mIsFallback); if (mFallbackFontp==NULL) { llwarns << "LLFontGL::reset(), no fallback fonts present" << llendl; } else { for (LLFontList::iterator it = mFallbackFontp->begin(); it != mFallbackFontp->end(); ++it) { (*it)->reset(); } } } resetBitmapCache(); }
void LLFontFreetype::reset(F32 vert_dpi, F32 horz_dpi) { resetBitmapCache(); loadFace(mName, mPointSize, vert_dpi ,horz_dpi, mFontBitmapCachep->getNumComponents(), mIsFallback); if (!mIsFallback) { // This is the head of the list - need to rebuild ourself and all fallbacks. if (mFallbackFonts.empty()) { llwarns << "LLFontGL::reset(), no fallback fonts present" << llendl; } else { for(font_vector_t::iterator it = mFallbackFonts.begin(); it != mFallbackFonts.end(); ++it) { (*it)->reset(vert_dpi, horz_dpi); } } } }