Skip to content

Commit

Permalink
[feature]:Adding-new-font (#1177)
Browse files Browse the repository at this point in the history
* [feature]:Adding-new-font

* [Feature]:- adding new font

* removed submodule folder

---------

Co-authored-by: codewithnick <[email protected]>
  • Loading branch information
nakul-py and codewithnick authored Oct 14, 2024
1 parent e972cde commit 2543174
Show file tree
Hide file tree
Showing 3 changed files with 1,607 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "./Fonts/amongus/amongus.h"
#include "./Fonts/drpepper/drpepper.h"
#include "./Fonts/small/small.h"
#include "./Fonts/3d-diagonal/3d-diagonal.h"

namespace ascii
{
Expand All @@ -30,7 +31,8 @@ namespace ascii
block,
amongus,
drpepper,
small
small,
threeD_diagonal
};

class Ascii
Expand Down Expand Up @@ -80,11 +82,16 @@ namespace ascii
{
this->font.reset(new Small());
}
else if (fontName == FontName::threeD_diagonal)
{
this->font.reset(new ThreeD_Diagonal());
}
else
{
exit(500);
}
}


void reset()
{
Expand Down
Loading

0 comments on commit 2543174

Please sign in to comment.