mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-26 08:08:28 +03:00
ecode: Fallback font path minor bug fix.
This commit is contained in:
@@ -2736,6 +2736,8 @@ FontTrueType* App::loadFont( const std::string& name, std::string fontPath,
|
||||
fontPath = mResPath + fontPath;
|
||||
if ( fontPath.empty() || !FileSystem::fileExists( fontPath ) )
|
||||
fontPath = fallback;
|
||||
if ( FileSystem::isRelativePath( fontPath ) )
|
||||
fontPath = mResPath + fontPath;
|
||||
return FontTrueType::New( name, fontPath );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user