Skip to content

Commit

Permalink
Merge pull request #1080 from jlewismith/main
Browse files Browse the repository at this point in the history
Added small font with an initial character
  • Loading branch information
AnshumanMahato committed Oct 31, 2023
2 parents 13299a5 + ca95435 commit 4840c50
Show file tree
Hide file tree
Showing 4 changed files with 1,189 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "./Fonts/block/block.h"
#include "./Fonts/amongus/amongus.h"
#include "./Fonts/drpepper/drpepper.h"
#include "./Fonts/small/small.h"

namespace ascii
{
Expand All @@ -27,7 +28,8 @@ namespace ascii
banner,
block,
amongus,
drpepper
drpepper,
small
};

class Ascii
Expand Down Expand Up @@ -74,6 +76,10 @@ namespace ascii
{
this->font = new Drpepper();
}
else if (fontName == FontName::small)
{
this->font = new Small();
}
else
{
exit(500);
Expand Down
Loading

0 comments on commit 4840c50

Please sign in to comment.