Commit 6fa18eb2 authored by Oleg Korshul's avatar Oleg Korshul

add folders to search the system fonts

parent 435bb02d
......@@ -1830,7 +1830,12 @@ CArray<std::wstring> CApplicationFonts::GetSetupFontFiles()
#endif
#if defined(__linux__) && !defined(_MAC)
return NSDirectory::GetFiles(L"/usr/share/fonts", true);
CArray<std::wstring> _array = NSDirectory::GetFiles(L"/usr/share/fonts", true);
NSDirectory::GetFiles2(L"/usr/share/X11/fonts", _array, true);
NSDirectory::GetFiles2(L"/usr/X11R6/lib/X11/fonts", _array, true);
NSDirectory::GetFiles2(L"~/.fonts", _array, true);
NSDirectory::GetFiles2(L"~/.local/share/fonts", _array, true);
return _array;
#endif
#if defined(_MAC) && !defined(_IOS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment