mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-28 09:14:10 +03:00
ecode: Some minor performance improvements.
eterm: added font family.
This commit is contained in:
@@ -230,12 +230,16 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
if ( fontPath && FileSystem::fileExists( fontPath.Get() ) ) {
|
||||
FileInfo file( fontPath.Get() );
|
||||
fontMono = FontTrueType::New( "monospace" );
|
||||
if ( !fontMono->loadFromFile( file.getFilepath() ) )
|
||||
if ( fontMono->loadFromFile( file.getFilepath() ) ) {
|
||||
FontFamily::loadFromRegular( fontMono );
|
||||
} else {
|
||||
fontMono = nullptr;
|
||||
}
|
||||
}
|
||||
if ( fontMono == nullptr ) {
|
||||
fontMono = FontTrueType::New( "monospace" );
|
||||
fontMono->loadFromFile( resPath + "fonts/DejaVuSansMonoNerdFontComplete.ttf" );
|
||||
FontFamily::loadFromRegular( fontMono, "DejaVuSansMono" );
|
||||
}
|
||||
|
||||
if ( FileSystem::fileExists( resPath + "fonts/NotoColorEmoji.ttf" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user