From b2678b36cb6451d598edb196483704e7ef33e9d9 Mon Sep 17 00:00:00 2001 From: ascii art Date: Fri, 27 Oct 2023 21:56:47 +0530 Subject: [PATCH 1/3] adding character n in amongus font... --- Fonts/amongus/amongus.h | 13 +++++++++++++ example.cpp | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Fonts/amongus/amongus.h b/Fonts/amongus/amongus.h index 24118449..c2c1aed7 100644 --- a/Fonts/amongus/amongus.h +++ b/Fonts/amongus/amongus.h @@ -519,6 +519,19 @@ class Amongus : public Fonts } */ + char **n() + { + char **character = getCharGrid(4, 6); + + // Enter the character grid in ROWS X COLS + character[0][1] = character[0][4] = character[3][1] = character[3][4] = '_'; + character[1][0] = character[1][3] = character[3][0] = character[2][4] ='('; + character[1][5] = character[2][1] = character[3][2] = character[3][5] = ')'; + character[1][2] = character[3][3] = '\\'; + // character[0][0] = character[0][2] = character[0][3] = character[0][5] = character[1][1] = character[1][4] = character[2][0] =character[2][2] =character[2][3] = character[2][5] = ' '; + + return character; + } /* char **o() diff --git a/example.cpp b/example.cpp index 9bcbc3c6..8ebe5bd5 100644 --- a/example.cpp +++ b/example.cpp @@ -5,7 +5,7 @@ using namespace ascii; int main() { - Ascii font = Ascii(block); - font.print("X"); + Ascii font = Ascii(amongus); + font.print("anb"); return 0; } \ No newline at end of file From 181a034e67eb42493eb5dd77193a8b2dcba671f4 Mon Sep 17 00:00:00 2001 From: ascii art Date: Fri, 27 Oct 2023 22:50:44 +0530 Subject: [PATCH 2/3] adding character o in amongus font... --- Fonts/amongus/amongus.h | 8 ++++++++ example.cpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Fonts/amongus/amongus.h b/Fonts/amongus/amongus.h index c2c1aed7..76b970cf 100644 --- a/Fonts/amongus/amongus.h +++ b/Fonts/amongus/amongus.h @@ -544,6 +544,14 @@ class Amongus : public Fonts } */ + char **o() + { + char **character = getCharGrid(4, 7); + character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[1][3] = character[2][3] = character[3][1] = character[3][2] = character[3][3] = character[3][4] = character[3][5] = '_'; + character[1][0] = character[2][2] = character[2][5] = character[3][0] = '('; + character[1][6] = character[2][1] = character[2][4] = character[3][6] = ')'; + return character; + } /* char **p() diff --git a/example.cpp b/example.cpp index 8ebe5bd5..9bcbc3c6 100644 --- a/example.cpp +++ b/example.cpp @@ -5,7 +5,7 @@ using namespace ascii; int main() { - Ascii font = Ascii(amongus); - font.print("anb"); + Ascii font = Ascii(block); + font.print("X"); return 0; } \ No newline at end of file From c1fa8c15aae70ff8a2666168a608ed69e693c10a Mon Sep 17 00:00:00 2001 From: ascii art Date: Sat, 28 Oct 2023 10:25:57 +0530 Subject: [PATCH 3/3] adding character 'p' in amongus font... --- Fonts/amongus/amongus.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Fonts/amongus/amongus.h b/Fonts/amongus/amongus.h index d3eabd5a..33cb11b2 100644 --- a/Fonts/amongus/amongus.h +++ b/Fonts/amongus/amongus.h @@ -563,7 +563,19 @@ class Amongus : public Fonts return character; } - */ + */char **p() + { + char **character = getCharGrid(4, 6); + + // Enter the character grid in ROWS X COLS + character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[1][3] = character[2][2] = character[2][3] = character[2][4] = character[3][1] = character[3][2] = '_'; + character[1][5] = '\\'; + character[3][3] = character[2][1] = ')'; + character[1][0] = character[3][0] = '('; + character[2][5] ='/'; + + return character; + } /* char **q()