Allow multiple fallback fonts.

Reduced allocations and improved logs in LSP Plugin.
Added String::split for std::string_view.
Added support for std::string_view in Log.
This commit is contained in:
Martín Lucas Golini
2023-11-05 18:56:56 -03:00
parent 67466df557
commit 3867a472b3
19 changed files with 6522 additions and 7330 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
if ( FileSystem::fileExists( fallbackFontPath ) ) {
FontTrueType* fallbackFont = FontTrueType::New( "fallback-font" );
if ( fallbackFont->loadFromFile( fallbackFontPath ) )
FontManager::instance()->setFallbackFont( fallbackFont );
FontManager::instance()->addFallbackFont( fallbackFont );
}
Float realMaxFPS = maxFPS.Get() ? maxFPS.Get() : currentDisplay->getRefreshRate();