diff --git a/ewol/resource/DistanceFieldFont.cpp b/ewol/resource/DistanceFieldFont.cpp index e9305a81..0bc1a714 100644 --- a/ewol/resource/DistanceFieldFont.cpp +++ b/ewol/resource/DistanceFieldFont.cpp @@ -42,12 +42,16 @@ void ewol::resource::DistanceFieldFont::init(const std::string& _fontName) { std::vector folderList; if (true == ewol::getContext().getFontDefault().getUseExternal()) { #if defined(__TARGET_OS__Android) - folderList.push_back("/system/fonts"); + folderList.push_back("ROOT:system/fonts"); #elif defined(__TARGET_OS__Linux) - folderList.push_back("/usr/share/fonts/truetype"); + folderList.push_back("ROOT:usr/share/fonts/truetype"); #endif } - folderList.push_back(ewol::getContext().getFontDefault().getFolder()); + std::string applicationBaseFont = ewol::getContext().getFontDefault().getFolder(); + std::vector applicationBaseFontList = etk::FSNodeExplodeMultiplePath(applicationBaseFont); + for (auto &it : applicationBaseFontList) { + folderList.push_back(it); + } for (size_t folderID = 0; folderID < folderList.size() ; folderID++) { etk::FSNode myFolder(folderList[folderID]); // find the real Font name : diff --git a/ewol/resource/TexturedFont.cpp b/ewol/resource/TexturedFont.cpp index 1aa0b919..27a98433 100644 --- a/ewol/resource/TexturedFont.cpp +++ b/ewol/resource/TexturedFont.cpp @@ -97,12 +97,16 @@ void ewol::resource::TexturedFont::init(const std::string& _fontName) { std::vector folderList; if (true == ewol::getContext().getFontDefault().getUseExternal()) { #if defined(__TARGET_OS__Android) - folderList.push_back("/system/fonts"); + folderList.push_back("ROOT:system/fonts"); #elif defined(__TARGET_OS__Linux) - folderList.push_back("/usr/share/fonts/truetype"); + folderList.push_back("ROOT:usr/share/fonts/truetype"); #endif } - folderList.push_back(ewol::getContext().getFontDefault().getFolder()); + std::string applicationBaseFont = ewol::getContext().getFontDefault().getFolder(); + std::vector applicationBaseFontList = etk::FSNodeExplodeMultiplePath(applicationBaseFont); + for (auto &it : applicationBaseFontList) { + folderList.push_back(it); + } for (size_t folderID=0; folderID