Restored old DejaVuSansMono font, and now added a separated DejaVuSansMono font with the Nerd Font version.

Added Math::roundDown.
TerminalEmulator: Fixed some memory leaks.
TerminalDisplay: Fixed some minor bugs. Added font grow/shink shortcut.
This commit is contained in:
Martín Lucas Golini
2022-06-26 14:54:29 -03:00
parent 983f0491e2
commit 919b9145d7
9 changed files with 79 additions and 34 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ EE_MAIN_FUNC int main( int, char*[] ) {
win->setClearColor( RGB( 0, 0, 0 ) );
FontTrueType* fontMono = FontTrueType::New( "monospace" );
fontMono->loadFromFile( "assets/fonts/DejaVuSansMono.ttf" );
fontMono->loadFromFile( "assets/fonts/DejaVuSansMonoNerdFontComplete.ttf" );
if ( !terminal || terminal->hasTerminated() ) {
terminal = TerminalDisplay::create( win, fontMono, PixelDensity::dpToPx( 11 ),