Skip to content

Commit 2543174

Browse files
[feature]:Adding-new-font (#1177)
* [feature]:Adding-new-font * [Feature]:- adding new font * removed submodule folder --------- Co-authored-by: codewithnick <nikhilsingh526452@gmail.com>
1 parent e972cde commit 2543174

File tree

3 files changed

+1607
-1
lines changed

3 files changed

+1607
-1
lines changed

Ascii.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "./Fonts/amongus/amongus.h"
1717
#include "./Fonts/drpepper/drpepper.h"
1818
#include "./Fonts/small/small.h"
19+
#include "./Fonts/3d-diagonal/3d-diagonal.h"
1920

2021
namespace ascii
2122
{
@@ -30,7 +31,8 @@ namespace ascii
3031
block,
3132
amongus,
3233
drpepper,
33-
small
34+
small,
35+
threeD_diagonal
3436
};
3537

3638
class Ascii
@@ -80,11 +82,16 @@ namespace ascii
8082
{
8183
this->font.reset(new Small());
8284
}
85+
else if (fontName == FontName::threeD_diagonal)
86+
{
87+
this->font.reset(new ThreeD_Diagonal());
88+
}
8389
else
8490
{
8591
exit(500);
8692
}
8793
}
94+
8895

8996
void reset()
9097
{

0 commit comments

Comments
 (0)