void onSelectFontFile() { FileSelectorFiles face; if (!show_file_selector( "Select a TrueType Font", m_face, "ttf,ttc,otf,dfont", FileSelectorType::Open, face)) return; ASSERT(!face.empty()); setFontFace(face.front()); }
void onSelectFontFile() { std::string face = show_file_selector( "Select a TrueType Font", m_face, "ttf", FileSelectorType::Open, nullptr); if (!face.empty()) { setFontFace(face); } }