void scanFontPaths (const StringArray& paths) { for (int i = 0; i < paths.size(); ++i) { DirectoryIterator iter (File::getCurrentWorkingDirectory() .getChildFile (paths[i]), true); while (iter.next()) if (iter.getFile().hasFileExtension ("ttf;pfb;pcf;otf")) scanFont (iter.getFile()); } }
void CharSelectEnhanced::newFont(int font) { // tDebug("newFont start"); QString oldFont(m_fontInUse); m_fontInUse = fontSelector->itemText(font); if (!m_fontInUse.isEmpty()) { m_charTableModel->setFontInUse(m_fontInUse); (*m_doc->AllFonts)[m_fontInUse].increaseUsage(); if (!oldFont.isEmpty()) (*m_doc->AllFonts)[oldFont].decreaseUsage(); delEdit(); scanFont(); generatePreview(0); m_characterClass = 0; setupRangeCombo(); } // tDebug("newFont end"); }