Skip to content

Commit

Permalink
Merge pull request #504 from Harry121199/main
Browse files Browse the repository at this point in the history
Added Letter L to carlos
  • Loading branch information
AnshumanMahato authored Oct 20, 2023
2 parents a5b4b7b + 7b9bc29 commit 3b0b43c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
49 changes: 24 additions & 25 deletions Fonts/carlos/carlos.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,21 +235,19 @@ class Carlos : public Fonts
return character;
}


char **I()
{
char **character = getCharGrid(7,8);
char **I()
{
char **character = getCharGrid(7, 8);

//Enter the character grid in ROWS X COL
character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[1][2] = character[1][6] = character[5][2] = character[5][6] = character[5][7] = character[6][2] = character[6][3] = character[6][4] = character[6][5] = character[6][6] = '_';
character[2][3] = character[2][5] = character[3][3] = character[3][5] = character[4][3] = character[4][5] = character[5][3] = character[5][5] = '|';
character[1][1] = character[6][7] = '(';
character[1][7] = ')';
character[6][1] = '/';
// Enter the character grid in ROWS X COL
character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[1][2] = character[1][6] = character[5][2] = character[5][6] = character[5][7] = character[6][2] = character[6][3] = character[6][4] = character[6][5] = character[6][6] = '_';
character[2][3] = character[2][5] = character[3][3] = character[3][5] = character[4][3] = character[4][5] = character[5][3] = character[5][5] = '|';
character[1][1] = character[6][7] = '(';
character[1][7] = ')';
character[6][1] = '/';

return character;
}

return character;
}

char **J()
{
Expand Down Expand Up @@ -277,16 +275,17 @@ class Carlos : public Fonts
return character;
}

/*
char **L()
{
char **character = getCharGrid(ROWS,COLS);
//Enter the character grid in ROWS X COL
return character;
}
*/
char **L()
{
char **character = getCharGrid(7, 11);
character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[1][1] = character[1][5] = character[5][0] = character[5][1] = character[5][5] = character[5][6] = character[5][7] = character[4][8] = character[4][9] = character[6][1] = character[6][2] = character[6][3] = character[6][4] = character[6][5] = character[6][6] = character[6][7] = character[6][8] = '_';
character[6][0] = '\\';
character[6][9] = '/';
character[2][2] = character[2][4] = character[3][2] = character[3][4] = character[4][2] = character[4][4] = character[5][2] = character[5][4] = '|';
character[1][0] = '(';
character[1][6] = character[5][8] = character[5][10] = ')';
return character;
}

/*
char **M()
Expand Down Expand Up @@ -1024,9 +1023,9 @@ class Carlos : public Fonts
*/

// for space
char **space()
char **space()
{
char **character = getCharGrid(1,1);
char **character = getCharGrid(1, 1);

character[0][0] = ' ';

Expand Down
6 changes: 2 additions & 4 deletions example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ using namespace ascii;

int main()
{

Ascii a = Ascii(banner);
a.print("iAcj");

Ascii a = Ascii(carlos);
a.print("L");
return 0;
}

0 comments on commit 3b0b43c

Please sign in to comment.