Skip to content

Commit e1b87e9

Browse files
Merge pull request #284 from NeerajSh-16/main
Letter J added to font starwar
2 parents 6f242cc + 9d4e8e2 commit e1b87e9

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Fonts/starwar/starwar.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,23 @@ class Starwar : public Fonts
121121
return character;
122122
}
123123

124-
/*
124+
125125
char **J()
126126
{
127127
char **character = getCharGrid();
128128

129129
//Enter the character grid in ROWS X COLS
130-
130+
character[4][0] = character[3][6] = character[2][6] = character[1][6] = character[1][9] = character[2][9] = character[3][9] = character[4][9] = '|';
131+
character[0][7] = character[0][8] = character[5][2] = character[5][3] = character[5][4] = character[5][5] = character[5][6] = character[5][7] = '_';
132+
character[3][1] = character[3][2] = character[4][4] = character[4][5] = '-';
133+
character[3][0] = character[3][3] = '.';
134+
character[5][1] = '\\';
135+
character[5][8] = '/';
136+
character[4][3] = '`';
137+
character[4][6] = '\'';
131138
return character;
132139
}
133-
*/
140+
134141

135142
/*
136143
char **K()
@@ -258,8 +265,6 @@ class Starwar : public Fonts
258265
char **character = getCharGrid();
259266
260267
//Enter the character grid in ROWS X COLS
261-
262-
return character;
263268
}
264269
*/
265270

example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace ascii;
55

66
int main()
77
{
8-
Ascii a = Ascii(straight);
9-
a.print("r");
8+
Ascii a = Ascii(starwar);
9+
a.print("J");
1010
return 0;
1111
}

0 commit comments

Comments
 (0)