Skip to content

Commit cfbf5c9

Browse files
Merge pull request #312 from NeerajSh-16/main
Letter P added to the font starwar
2 parents c270ab0 + 0a9355f commit cfbf5c9

File tree

3 files changed

+40
-49
lines changed

3 files changed

+40
-49
lines changed

Fonts/starwar/starwar.h

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,22 @@ class Starwar : public Fonts
209209
}
210210
*/
211211

212-
/*
212+
213213
char **P()
214214
{
215215
char **character = getCharGrid();
216216

217217
//Enter the character grid in ROWS X COLS
218+
character[2][4] =character[1][4] = character[2][4] = character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[5][2] = character[3][5] = character[3][4] = character[3][6]= '_';
219+
character[1][0] = character[2][0] = character[3][0] = character[4][0] = character[5][0] = character[2][8] = character[2][3] = character[4][3] = character[5][3] = '|';
220+
character[1][7] = '\\';
221+
character[0][0] ='.';
222+
character[3][7] = '/';
223+
character[2][5] = ')';
218224

219225
return character;
220226
}
221-
*/
227+
222228

223229
/*
224230
char **Q()
@@ -231,16 +237,24 @@ class Starwar : public Fonts
231237
}
232238
*/
233239

234-
/*
240+
235241
char **R()
236242
{
237243
char **character = getCharGrid();
238244

239245
//Enter the character grid in ROWS X COLS
246+
character[2][4] =character[1][4] = character[2][4] = character[0][1] = character[0][2] = character[0][3] = character[0][4] = character[0][5] = character[0][6] = character[5][2] = character[5][7] = character[5][8] = character[5][9] = character[5][10] = character[5][11] = '_';
247+
character[1][0] = character[2][0] = character[3][0] = character[4][0] = character[5][0] = character[2][8] = character[2][3] = character[5][12] = character[5][3] = '|';
248+
character[4][8] = character[4][9] = character[4][10] = character[4][11] = '-';
249+
character[1][7] = character[4][4] = character[4][7] = '\\';
250+
character[0][0] = character[5][6] = character[4][12] = '.';
251+
character[3][7] = '/';
252+
character[2][5] = ')';
253+
character[5][5] = '`';
240254

241255
return character;
242256
}
243-
*/
257+
244258

245259
/*
246260
char **S()
@@ -285,7 +299,7 @@ class Starwar : public Fonts
285299
char **V()
286300
{
287301
char **character = getCharGrid();
288-
302+
289303
//Enter the character grid in ROWS X COLS
290304
291305
return character;

example.cpp

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

66
int main()
77
{
8-
Ascii a = Ascii(straight);
9-
a.print("Z");
10-
Ascii b = Ascii(straight);
11-
b.print("F");
8+
Ascii a = Ascii(starwar);
9+
a.print("R");
1210
return 0;
1311
}

readme.md

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -75,38 +75,10 @@ Features 🎉 Supports a variety of fonts, including standard fonts, decorative
7575
<table>
7676
<tr>
7777
<td align="center">
78-
<a href="https://github.com/codewithnick">
79-
<img src="https://avatars.githubusercontent.com/u/53932029?v=4" width="70;" alt="codewithnick"/>
80-
<br />
81-
<sub><b>Nikhil Singh</b></sub>
82-
</a>
83-
</td>
84-
<td align="center">
85-
<a href="https://github.com/AnshumanMahato">
86-
<img src="https://avatars.githubusercontent.com/u/58422570?v=4" width="70;" alt="AnshumanMahato"/>
87-
<br />
88-
<sub><b>Anshuman Mahato</b></sub>
89-
</a>
90-
</td>
91-
<td align="center">
92-
<a href="https://github.com/vkumar8192449">
93-
<img src="https://avatars.githubusercontent.com/u/64706066?v=4" width="70;" alt="vkumar8192449"/>
94-
<br />
95-
<sub><b>Vinay Kumar</b></sub>
96-
</a>
97-
</td>
98-
<td align="center">
99-
<a href="https://github.com/vishu567">
100-
<img src="https://avatars.githubusercontent.com/u/112263798?v=4" width="70;" alt="vishu567"/>
101-
<br />
102-
<sub><b>Vishal.</b></sub>
103-
</a>
104-
</td>
105-
<td align="center">
106-
<a href="https://github.com/sachinkumar911">
107-
<img src="https://avatars.githubusercontent.com/u/115224664?v=4" width="70;" alt="sachinkumar911"/>
78+
<a href="https://github.com/NeerajSh-16">
79+
<img src="https://avatars.githubusercontent.com/u/144585755?v=4" width="70;" alt="NeerajSh-16"/>
10880
<br />
109-
<sub><b>Sachin Kumar</b></sub>
81+
<sub><b>Neeraj Sharma</b></sub>
11082
</a>
11183
</td></tr>
11284
</table>
@@ -210,6 +182,13 @@ Features 🎉 Supports a variety of fonts, including standard fonts, decorative
210182
<sub><b>Pop</b></sub>
211183
</a>
212184
</td>
185+
<td align="center">
186+
<a href="https://github.com/Stunner33">
187+
<img src="https://avatars.githubusercontent.com/u/127297054?v=4" width="70;" alt="Stunner33"/>
188+
<br />
189+
<sub><b>Null</b></sub>
190+
</a>
191+
</td>
213192
<td align="center">
214193
<a href="https://github.com/codewithana">
215194
<img src="https://avatars.githubusercontent.com/u/144683532?v=4" width="70;" alt="codewithana"/>
@@ -237,15 +216,15 @@ Features 🎉 Supports a variety of fonts, including standard fonts, decorative
237216
<br />
238217
<sub><b>Ankit Kujur</b></sub>
239218
</a>
240-
</td>
219+
</td></tr>
220+
<tr>
241221
<td align="center">
242222
<a href="https://github.com/gourshabrg">
243223
<img src="https://avatars.githubusercontent.com/u/143959353?v=4" width="70;" alt="gourshabrg"/>
244224
<br />
245225
<sub><b>Ravindra Gour</b></sub>
246226
</a>
247-
</td></tr>
248-
<tr>
227+
</td>
249228
<td align="center">
250229
<a href="https://github.com/XARTAN21">
251230
<img src="https://avatars.githubusercontent.com/u/124522194?v=4" width="70;" alt="XARTAN21"/>
@@ -280,15 +259,15 @@ Features 🎉 Supports a variety of fonts, including standard fonts, decorative
280259
<br />
281260
<sub><b>Jannik Schmidtke</b></sub>
282261
</a>
283-
</td>
262+
</td></tr>
263+
<tr>
284264
<td align="center">
285265
<a href="https://github.com/Arif20484423">
286266
<img src="https://avatars.githubusercontent.com/u/76733190?v=4" width="70;" alt="Arif20484423"/>
287267
<br />
288268
<sub><b>Md Arif</b></sub>
289269
</a>
290-
</td></tr>
291-
<tr>
270+
</td>
292271
<td align="center">
293272
<a href="https://github.com/abhay5624">
294273
<img src="https://avatars.githubusercontent.com/u/77601553?v=4" width="70;" alt="abhay5624"/>
@@ -323,15 +302,15 @@ Features 🎉 Supports a variety of fonts, including standard fonts, decorative
323302
<br />
324303
<sub><b>Null</b></sub>
325304
</a>
326-
</td>
305+
</td></tr>
306+
<tr>
327307
<td align="center">
328308
<a href="https://github.com/prajjawal007">
329309
<img src="https://avatars.githubusercontent.com/u/144593090?v=4" width="70;" alt="prajjawal007"/>
330310
<br />
331311
<sub><b>Prajjawal Agrawal</b></sub>
332312
</a>
333-
</td></tr>
334-
<tr>
313+
</td>
335314
<td align="center">
336315
<a href="https://github.com/prateek00077">
337316
<img src="https://avatars.githubusercontent.com/u/147089488?v=4" width="70;" alt="prateek00077"/>

0 commit comments

Comments
 (0)