tty-font 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73df452ac43dd2d38595a3cc6214c2189d7c562c760058f60c240ca1856de619
4
- data.tar.gz: ecdff8d368c8b41a36fbd548c014a6c70fc70ba38e33c2362b10ac9e8d4b52f4
3
+ metadata.gz: 9399079eb7b180c98d44d0b76b44848de06fdda5394ba02d1727002c4708d458
4
+ data.tar.gz: e1f6b9cf102c8a30d04fa8cbc6ca6e24481579a8d35db238d75bf05e1f99dcbd
5
5
  SHA512:
6
- metadata.gz: e60697e1e66084bd9151a07c5fc1e6278649deefeebff8db0667ac35b69fb6a260cd16c726b41e738a0b64ffca10100452bb8c077dfa1f29c717edfd7135e3e2
7
- data.tar.gz: d552cbda2c0022c6cc0485ac7904669e5018679bdb9732793f088bebf22488c15d9966b664cb604fcc2d0e4c0312795d4f1ac93b53ff853ecbdf399689b2a02d
6
+ metadata.gz: e676019cb0759ddb039ef91d94e44aa7ede229cb9fbe475bce4695c46089db1b45f20ca64c50ac88b35249ec16f4dc3bcecdb30f9b8f41bcb4e84700fb799df2
7
+ data.tar.gz: eccca94ebd205de6d07804b21ca7cbdaf9f733c8a6967f3a05b2ddcbdc26ca98bc6c211c0912d9e0879586d0a1c43dabbe1728573e5cb5b769871ab5258dbf77
@@ -1,5 +1,14 @@
1
1
  # Change log
2
2
 
3
+ ## [v0.4.0] - 2019-06-26
4
+
5
+ ### Added
6
+ * Add block font
7
+ * Add char_space option to font YAML file
8
+
9
+ ### Changed
10
+ * Change bundler and rake dev dependency version
11
+
3
12
  ## [v0.3.0] - 2018-11-01
4
13
 
5
14
  ### Changed
@@ -21,6 +30,7 @@
21
30
 
22
31
  * Initial implementation and release
23
32
 
33
+ [v0.4.0]: https://github.com/piotrmurach/tty-font/compare/v0.3.0...v0.4.0
24
34
  [v0.3.0]: https://github.com/piotrmurach/tty-font/compare/v0.2.0...v0.3.0
25
35
  [v0.2.0]: https://github.com/piotrmurach/tty-font/compare/v0.1.0...v0.2.0
26
36
  [v0.1.0]: https://github.com/piotrmurach/tty-font/compare/v0.1.0
data/README.md CHANGED
@@ -88,6 +88,7 @@ puts pastel.yellow(font.write("DOOM"))
88
88
  The list of the available fonts: (select link to see font face)
89
89
 
90
90
  * [3d](fonts/3d.md)
91
+ * [block](fonts/block.md)
91
92
  * [doom](fonts/doom.md)
92
93
  * [standard](fonts/standard.md)
93
94
  * [starwars](fonts/starwars.md)
@@ -113,4 +114,4 @@ Everyone interacting in the TTY::Font project’s codebases, issue trackers, cha
113
114
 
114
115
  ## Copyright
115
116
 
116
- Copyright (c) 2017-2018 Piotr Murach. See LICENSE for further details.
117
+ Copyright (c) 2017 Piotr Murach. See LICENSE for further details.
@@ -0,0 +1,19 @@
1
+ require 'pastel'
2
+ require_relative '../lib/tty-font'
3
+
4
+ pastel = Pastel.new
5
+ font = TTY::Font.new(:block)
6
+
7
+ puts pastel.yellow(font.write("block"))
8
+
9
+ puts font.write("ABCDEFGHIJKLMN")
10
+ puts font.write("OPQRSTUVWXYZ")
11
+
12
+ puts font.write("abcdefghijklmn")
13
+ puts font.write("opqrstuvwxyz")
14
+
15
+ puts font.write("0123456789")
16
+
17
+ puts font.write("!#\$%^&*()-_+=")
18
+
19
+ puts font.write("\"',.:;><?@][\\/")
@@ -0,0 +1,34 @@
1
+ # block
2
+
3
+ ```
4
+
5
+ _|_| _|_|_| _|_|_| _|_|_| _|_|_|_| _|_|_|_| _|_|_|
6
+ _| _| _| _| _| _| _| _| _| _|
7
+ _|_|_|_| _|_|_| _| _| _| _|_|_| _|_|_| _| _|_|
8
+ _| _| _| _| _| _| _| _| _| _| _|
9
+ _| _| _|_|_| _|_|_| _|_|_| _|_|_|_| _| _|_|_|
10
+
11
+
12
+ ```
13
+
14
+
15
+ ```
16
+
17
+ _| _| _|_|
18
+ _|_|_| _|_|_| _|_|_| _|_|_| _|_| _| _|_|_|
19
+ _| _| _| _| _| _| _| _|_|_|_| _|_|_|_| _| _|
20
+ _| _| _| _| _| _| _| _| _| _| _|
21
+ _|_|_| _|_|_| _|_|_| _|_|_| _|_|_| _| _|_|_|
22
+ _|
23
+ _|_|
24
+
25
+ ```
26
+
27
+ ```
28
+ _| _|_| _|_|_| _| _| _|_|_|_| _|_|_| _|_|_|_|_|
29
+ _|_| _| _| _| _| _| _| _| _|
30
+ _| _| _|_| _|_|_|_| _|_|_| _|_|_| _|
31
+ _| _| _| _| _| _| _| _|
32
+ _| _|_|_|_| _|_|_| _| _|_|_| _|_| _|
33
+
34
+ ```
@@ -8,12 +8,12 @@ require_relative 'font/version'
8
8
 
9
9
  module TTY
10
10
  class Font
11
- FONTS_PATH = ::Pathname.new(::File.join(__dir__, 'font'))
11
+ FONTS_PATH = ::Pathname.new(::File.join(__dir__, "fonts"))
12
12
 
13
13
  def initialize(font = :standard, **options)
14
14
  @font = font
15
15
  @data = load_font(FONTS_PATH.join("#{font}.yml"))
16
- @space = options.fetch(:letter_spacing) { 0 }
16
+ @space = options.fetch(:letter_spacing) { @data['char_space'] }
17
17
  end
18
18
 
19
19
  # Write text in a font format
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  class Font
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end # Font
7
7
  end # TTY
@@ -1,6 +1,7 @@
1
1
  name: 3d
2
2
  author: "Larry Gelberg (larryg@avs.com)"
3
3
  char_height: 9
4
+ char_space: 0
4
5
  max_line_length: 15
5
6
  chars:
6
7
  "!": [
@@ -0,0 +1,906 @@
1
+ name: block
2
+ author: "Glenn Chappell"
3
+ char_height: 8
4
+ char_space: 1
5
+ max_line_length: 27
6
+ chars:
7
+ "!": [
8
+ " ",
9
+ "_|",
10
+ "_|",
11
+ "_|",
12
+ " ",
13
+ "_|",
14
+ " ",
15
+ " ",
16
+ ]
17
+ "\"": [
18
+ "_| _|",
19
+ "_| _|",
20
+ " ",
21
+ " ",
22
+ " ",
23
+ " ",
24
+ " ",
25
+ " ",
26
+ ]
27
+ "#": [
28
+ " ",
29
+ " _| _| ",
30
+ "_|_|_|_|_|",
31
+ " _| _| ",
32
+ "_|_|_|_|_|",
33
+ " _| _| ",
34
+ " ",
35
+ " ",
36
+ ]
37
+ "$": [
38
+ " ",
39
+ " _| ",
40
+ "_|_|_|",
41
+ "_|_| ",
42
+ " _|_|",
43
+ "_|_|_|",
44
+ " _| ",
45
+ " ",
46
+ ]
47
+ "%": [
48
+ " ",
49
+ "_|_| _|",
50
+ "_|_| _| ",
51
+ " _| ",
52
+ " _| _|_|",
53
+ "_| _|_|",
54
+ " ",
55
+ " ",
56
+ ]
57
+ "&": [
58
+ " ",
59
+ " _| ",
60
+ "_| _| ",
61
+ " _|_| _|",
62
+ "_| _| ",
63
+ " _|_| _|",
64
+ " ",
65
+ " ",
66
+ ]
67
+ "`": [
68
+ " _|",
69
+ "_| ",
70
+ " ",
71
+ " ",
72
+ " ",
73
+ " ",
74
+ " ",
75
+ " ",
76
+ ]
77
+ "(": [
78
+ " _|",
79
+ "_| ",
80
+ "_| ",
81
+ "_| ",
82
+ "_| ",
83
+ "_| ",
84
+ " _|",
85
+ " ",
86
+ ]
87
+ ")": [
88
+ "_| ",
89
+ " _| ",
90
+ " _| ",
91
+ " _| ",
92
+ " _| ",
93
+ " _| ",
94
+ "_| ",
95
+ " ",
96
+ ]
97
+ "*": [
98
+ " ",
99
+ "_| _| _|",
100
+ " _|_|_| ",
101
+ "_|_|_|_|_|",
102
+ " _|_|_| ",
103
+ "_| _| _|",
104
+ " ",
105
+ " ",
106
+ ]
107
+ "+": [
108
+ " ",
109
+ " _| ",
110
+ " _| ",
111
+ "_|_|_|_|_|",
112
+ " _| ",
113
+ " _| ",
114
+ " ",
115
+ " ",
116
+ ]
117
+ ",": [
118
+ " ",
119
+ " ",
120
+ " ",
121
+ " ",
122
+ " ",
123
+ " _|",
124
+ "_| ",
125
+ " ",
126
+ ]
127
+ "-": [
128
+ " ",
129
+ " ",
130
+ " ",
131
+ "_|_|_|_|_|",
132
+ " ",
133
+ " ",
134
+ " ",
135
+ " ",
136
+ ]
137
+ ".": [
138
+ " ",
139
+ " ",
140
+ " ",
141
+ " ",
142
+ " ",
143
+ " _|",
144
+ " ",
145
+ " ",
146
+ ]
147
+ "/": [
148
+ " ",
149
+ " _|",
150
+ " _| ",
151
+ " _| ",
152
+ " _| ",
153
+ "_| ",
154
+ " ",
155
+ " ",
156
+ ]
157
+ "0": [
158
+ " ",
159
+ " _| ",
160
+ "_| _|",
161
+ "_| _|",
162
+ "_| _|",
163
+ " _| ",
164
+ " ",
165
+ " ",
166
+ ]
167
+ "1": [
168
+ " ",
169
+ " _|",
170
+ "_|_|",
171
+ " _|",
172
+ " _|",
173
+ " _|",
174
+ " ",
175
+ " ",
176
+ ]
177
+ "2": [
178
+ " ",
179
+ " _|_| ",
180
+ "_| _|",
181
+ " _| ",
182
+ " _| ",
183
+ "_|_|_|_|",
184
+ " ",
185
+ " ",
186
+ ]
187
+ "3": [
188
+ " ",
189
+ "_|_|_| ",
190
+ " _|",
191
+ " _|_| ",
192
+ " _|",
193
+ "_|_|_| ",
194
+ " ",
195
+ " ",
196
+ ]
197
+ "4": [
198
+ " ",
199
+ "_| _| ",
200
+ "_| _| ",
201
+ "_|_|_|_|",
202
+ " _| ",
203
+ " _| ",
204
+ " ",
205
+ " ",
206
+ ]
207
+ "5": [
208
+ " ",
209
+ "_|_|_|_|",
210
+ "_| ",
211
+ "_|_|_| ",
212
+ " _|",
213
+ "_|_|_| ",
214
+ " ",
215
+ " ",
216
+ ]
217
+ "6": [
218
+ " ",
219
+ " _|_|_|",
220
+ "_| ",
221
+ "_|_|_| ",
222
+ "_| _|",
223
+ " _|_| ",
224
+ " ",
225
+ " ",
226
+ ]
227
+ "7": [
228
+ " ",
229
+ "_|_|_|_|_|",
230
+ " _|",
231
+ " _| ",
232
+ " _| ",
233
+ " _| ",
234
+ " ",
235
+ " ",
236
+ ]
237
+ "8": [
238
+ " ",
239
+ " _|_| ",
240
+ "_| _|",
241
+ " _|_| ",
242
+ "_| _|",
243
+ " _|_| ",
244
+ " ",
245
+ " ",
246
+ ]
247
+ "9": [
248
+ " ",
249
+ " _|_| ",
250
+ "_| _|",
251
+ " _|_|_|",
252
+ " _|",
253
+ "_|_|_| ",
254
+ " ",
255
+ " ",
256
+ ]
257
+ ":": [
258
+ " ",
259
+ " ",
260
+ "_|",
261
+ " ",
262
+ " ",
263
+ "_|",
264
+ " ",
265
+ " ",
266
+ ]
267
+ ";": [
268
+ " ",
269
+ " ",
270
+ " _|",
271
+ " ",
272
+ " ",
273
+ " _|",
274
+ "_| ",
275
+ " ",
276
+ ]
277
+ "<": [
278
+ " ",
279
+ " _|",
280
+ " _| ",
281
+ "_| ",
282
+ " _| ",
283
+ " _|",
284
+ " ",
285
+ " ",
286
+ ]
287
+ "=": [
288
+ " ",
289
+ " ",
290
+ "_|_|_|_|_|",
291
+ " ",
292
+ "_|_|_|_|_|",
293
+ " ",
294
+ " ",
295
+ " ",
296
+ ]
297
+ ">": [
298
+ " ",
299
+ "_| ",
300
+ " _| ",
301
+ " _|",
302
+ " _| ",
303
+ "_| ",
304
+ " ",
305
+ " ",
306
+ ]
307
+ "?": [
308
+ " ",
309
+ "_|_| ",
310
+ " _|",
311
+ "_|_| ",
312
+ " ",
313
+ "_| ",
314
+ " ",
315
+ " ",
316
+ ]
317
+ "@": [
318
+ " ",
319
+ " _|_|_|_|_| ",
320
+ " _| _|",
321
+ "_| _|_|_| _|",
322
+ "_| _| _| _|",
323
+ "_| _|_|_|_| ",
324
+ " _| ",
325
+ " _|_|_|_|_|_|",
326
+ ]
327
+ A: [
328
+ " ",
329
+ " _|_| ",
330
+ "_| _|",
331
+ "_|_|_|_|",
332
+ "_| _|",
333
+ "_| _|",
334
+ " ",
335
+ " ",
336
+ ]
337
+ B: [
338
+ " ",
339
+ "_|_|_| ",
340
+ "_| _|",
341
+ "_|_|_| ",
342
+ "_| _|",
343
+ "_|_|_| ",
344
+ " ",
345
+ " ",
346
+ ]
347
+ C: [
348
+ " ",
349
+ " _|_|_|",
350
+ "_| ",
351
+ "_| ",
352
+ "_| ",
353
+ " _|_|_|",
354
+ " ",
355
+ " ",
356
+ ]
357
+ D: [
358
+ " ",
359
+ "_|_|_| ",
360
+ "_| _|",
361
+ "_| _|",
362
+ "_| _|",
363
+ "_|_|_| ",
364
+ " ",
365
+ " ",
366
+ ]
367
+ E: [
368
+ " ",
369
+ "_|_|_|_|",
370
+ "_| ",
371
+ "_|_|_| ",
372
+ "_| ",
373
+ "_|_|_|_|",
374
+ " ",
375
+ " ",
376
+ ]
377
+ F: [
378
+ " ",
379
+ "_|_|_|_|",
380
+ "_| ",
381
+ "_|_|_| ",
382
+ "_| ",
383
+ "_| ",
384
+ " ",
385
+ " ",
386
+ ]
387
+ G: [
388
+ " ",
389
+ " _|_|_|",
390
+ "_| ",
391
+ "_| _|_|",
392
+ "_| _|",
393
+ " _|_|_|",
394
+ " ",
395
+ " ",
396
+ ]
397
+ H: [
398
+ " ",
399
+ "_| _|",
400
+ "_| _|",
401
+ "_|_|_|_|",
402
+ "_| _|",
403
+ "_| _|",
404
+ " ",
405
+ " ",
406
+ ]
407
+ I: [
408
+ " ",
409
+ "_|_|_|",
410
+ " _| ",
411
+ " _| ",
412
+ " _| ",
413
+ "_|_|_|",
414
+ " ",
415
+ " ",
416
+ ]
417
+ J: [
418
+ " ",
419
+ " _|",
420
+ " _|",
421
+ " _|",
422
+ "_| _|",
423
+ " _|_| ",
424
+ " ",
425
+ " ",
426
+ ]
427
+ K: [
428
+ " ",
429
+ "_| _|",
430
+ "_| _| ",
431
+ "_|_| ",
432
+ "_| _| ",
433
+ "_| _|",
434
+ " ",
435
+ " ",
436
+ ]
437
+ L: [
438
+ " ",
439
+ "_| ",
440
+ "_| ",
441
+ "_| ",
442
+ "_| ",
443
+ "_|_|_|_|",
444
+ " ",
445
+ " ",
446
+ ]
447
+ M: [
448
+ " ",
449
+ "_| _|",
450
+ "_|_| _|_|",
451
+ "_| _| _|",
452
+ "_| _|",
453
+ "_| _|",
454
+ " ",
455
+ " ",
456
+ ]
457
+ N: [
458
+ " ",
459
+ "_| _|",
460
+ "_|_| _|",
461
+ "_| _| _|",
462
+ "_| _|_|",
463
+ "_| _|",
464
+ " ",
465
+ " ",
466
+ ]
467
+ O: [
468
+ " ",
469
+ " _|_| ",
470
+ "_| _|",
471
+ "_| _|",
472
+ "_| _|",
473
+ " _|_| ",
474
+ " ",
475
+ " ",
476
+ ]
477
+ P: [
478
+ " ",
479
+ "_|_|_| ",
480
+ "_| _|",
481
+ "_|_|_| ",
482
+ "_| ",
483
+ "_| ",
484
+ " ",
485
+ " ",
486
+ ]
487
+ Q: [
488
+ " ",
489
+ " _|_| ",
490
+ "_| _| ",
491
+ "_| _|_| ",
492
+ "_| _| ",
493
+ " _|_| _|",
494
+ " ",
495
+ " ",
496
+ ]
497
+ R: [
498
+ " ",
499
+ "_|_|_| ",
500
+ "_| _|",
501
+ "_|_|_| ",
502
+ "_| _|",
503
+ "_| _|",
504
+ " ",
505
+ " ",
506
+ ]
507
+ S: [
508
+ " ",
509
+ " _|_|_|",
510
+ "_| ",
511
+ " _|_| ",
512
+ " _|",
513
+ "_|_|_| ",
514
+ " ",
515
+ " ",
516
+ ]
517
+ T: [
518
+ " ",
519
+ "_|_|_|_|_|",
520
+ " _| ",
521
+ " _| ",
522
+ " _| ",
523
+ " _| ",
524
+ " ",
525
+ " ",
526
+ ]
527
+ U: [
528
+ " ",
529
+ "_| _|",
530
+ "_| _|",
531
+ "_| _|",
532
+ "_| _|",
533
+ " _|_| ",
534
+ " ",
535
+ " ",
536
+ ]
537
+ V: [
538
+ " ",
539
+ "_| _|",
540
+ "_| _|",
541
+ "_| _|",
542
+ " _| _| ",
543
+ " _| ",
544
+ " ",
545
+ " ",
546
+ ]
547
+ W: [
548
+ " ",
549
+ "_| _|",
550
+ "_| _|",
551
+ "_| _| _|",
552
+ " _| _| _| ",
553
+ " _| _| ",
554
+ " ",
555
+ " ",
556
+ ]
557
+ X: [
558
+ " ",
559
+ "_| _|",
560
+ " _| _| ",
561
+ " _| ",
562
+ " _| _| ",
563
+ "_| _|",
564
+ " ",
565
+ " ",
566
+ ]
567
+ Y: [
568
+ " ",
569
+ "_| _|",
570
+ " _| _| ",
571
+ " _| ",
572
+ " _| ",
573
+ " _| ",
574
+ " ",
575
+ " ",
576
+ ]
577
+ Z: [
578
+ " ",
579
+ "_|_|_|_|_|",
580
+ " _| ",
581
+ " _| ",
582
+ " _| ",
583
+ "_|_|_|_|_|",
584
+ " ",
585
+ " ",
586
+ ]
587
+ "[": [
588
+ "_|_|",
589
+ "_| ",
590
+ "_| ",
591
+ "_| ",
592
+ "_| ",
593
+ "_| ",
594
+ "_|_|",
595
+ " ",
596
+ ]
597
+ "\\": [
598
+ " ",
599
+ "_| ",
600
+ " _| ",
601
+ " _| ",
602
+ " _| ",
603
+ " _|",
604
+ " ",
605
+ " ",
606
+ ]
607
+ "]": [
608
+ "_|_|",
609
+ " _|",
610
+ " _|",
611
+ " _|",
612
+ " _|",
613
+ " _|",
614
+ "_|_|",
615
+ " ",
616
+ ]
617
+ "^": [
618
+ " _| ",
619
+ "_| _|",
620
+ " ",
621
+ " ",
622
+ " ",
623
+ " ",
624
+ " ",
625
+ " ",
626
+ ]
627
+ "_": [
628
+ " ",
629
+ " ",
630
+ " ",
631
+ " ",
632
+ " ",
633
+ " ",
634
+ " ",
635
+ "_|_|_|_|_|",
636
+ ]
637
+ "'": [
638
+ "_| ",
639
+ " _|",
640
+ " ",
641
+ " ",
642
+ " ",
643
+ " ",
644
+ " ",
645
+ " ",
646
+ ]
647
+ a: [
648
+ " ",
649
+ " ",
650
+ " _|_|_|",
651
+ "_| _|",
652
+ "_| _|",
653
+ " _|_|_|",
654
+ " ",
655
+ " ",
656
+ ]
657
+ b: [
658
+ " ",
659
+ "_| ",
660
+ "_|_|_| ",
661
+ "_| _|",
662
+ "_| _|",
663
+ "_|_|_| ",
664
+ " ",
665
+ " ",
666
+ ]
667
+ c: [
668
+ " ",
669
+ " ",
670
+ " _|_|_|",
671
+ "_| ",
672
+ "_| ",
673
+ " _|_|_|",
674
+ " ",
675
+ " ",
676
+ ]
677
+ d: [
678
+ " ",
679
+ " _|",
680
+ " _|_|_|",
681
+ "_| _|",
682
+ "_| _|",
683
+ " _|_|_|",
684
+ " ",
685
+ " ",
686
+ ]
687
+ e: [
688
+ " ",
689
+ " ",
690
+ " _|_| ",
691
+ "_|_|_|_|",
692
+ "_| ",
693
+ " _|_|_|",
694
+ " ",
695
+ " ",
696
+ ]
697
+ f: [
698
+ " ",
699
+ " _|_|",
700
+ " _| ",
701
+ "_|_|_|_|",
702
+ " _| ",
703
+ " _| ",
704
+ " ",
705
+ " ",
706
+ ]
707
+ g: [
708
+ " ",
709
+ " ",
710
+ " _|_|_|",
711
+ "_| _|",
712
+ "_| _|",
713
+ " _|_|_|",
714
+ " _|",
715
+ " _|_| ",
716
+ ]
717
+ h: [
718
+ " ",
719
+ "_| ",
720
+ "_|_|_| ",
721
+ "_| _|",
722
+ "_| _|",
723
+ "_| _|",
724
+ " ",
725
+ " ",
726
+ ]
727
+ i: [
728
+ " ",
729
+ "_|",
730
+ " ",
731
+ "_|",
732
+ "_|",
733
+ "_|",
734
+ " ",
735
+ " ",
736
+ ]
737
+ j: [
738
+ " ",
739
+ " _|",
740
+ " ",
741
+ " _|",
742
+ " _|",
743
+ " _|",
744
+ " _|",
745
+ "_| ",
746
+ ]
747
+ k: [
748
+ " ",
749
+ "_| ",
750
+ "_| _| ",
751
+ "_|_| ",
752
+ "_| _| ",
753
+ "_| _|",
754
+ " ",
755
+ " ",
756
+ ]
757
+ l: [
758
+ " ",
759
+ "_|",
760
+ "_|",
761
+ "_|",
762
+ "_|",
763
+ "_|",
764
+ " ",
765
+ " ",
766
+ ]
767
+ m: [
768
+ " ",
769
+ " ",
770
+ "_|_|_| _|_| ",
771
+ "_| _| _|",
772
+ "_| _| _|",
773
+ "_| _| _|",
774
+ " ",
775
+ " ",
776
+ ]
777
+ n: [
778
+ " ",
779
+ " ",
780
+ "_|_|_| ",
781
+ "_| _|",
782
+ "_| _|",
783
+ "_| _|",
784
+ " ",
785
+ " ",
786
+ ]
787
+ o: [
788
+ " ",
789
+ " ",
790
+ " _|_| ",
791
+ "_| _|",
792
+ "_| _|",
793
+ " _|_| ",
794
+ " ",
795
+ " ",
796
+ ]
797
+ p: [
798
+ " ",
799
+ " ",
800
+ "_|_|_| ",
801
+ "_| _|",
802
+ "_| _|",
803
+ "_|_|_| ",
804
+ "_| ",
805
+ "_| ",
806
+ ]
807
+ q: [
808
+ " ",
809
+ " ",
810
+ " _|_|_|",
811
+ "_| _|",
812
+ "_| _|",
813
+ " _|_|_|",
814
+ " _|",
815
+ " _|",
816
+ ]
817
+ r: [
818
+ " ",
819
+ " ",
820
+ "_| _|_|",
821
+ "_|_| ",
822
+ "_| ",
823
+ "_| ",
824
+ " ",
825
+ " ",
826
+ ]
827
+ s: [
828
+ " ",
829
+ " ",
830
+ " _|_|_|",
831
+ "_|_| ",
832
+ " _|_|",
833
+ "_|_|_| ",
834
+ " ",
835
+ " ",
836
+ ]
837
+ t: [
838
+ " ",
839
+ " _| ",
840
+ "_|_|_|_|",
841
+ " _| ",
842
+ " _| ",
843
+ " _|_|",
844
+ " ",
845
+ " ",
846
+ ]
847
+ u: [
848
+ " ",
849
+ " ",
850
+ "_| _|",
851
+ "_| _|",
852
+ "_| _|",
853
+ " _|_|_|",
854
+ " ",
855
+ " ",
856
+ ]
857
+ v: [
858
+ " ",
859
+ " ",
860
+ "_| _|",
861
+ "_| _|",
862
+ " _| _| ",
863
+ " _| ",
864
+ " ",
865
+ " ",
866
+ ]
867
+ w: [
868
+ " ",
869
+ " ",
870
+ "_| _| _|",
871
+ "_| _| _|",
872
+ " _| _| _| _| ",
873
+ " _| _| ",
874
+ " ",
875
+ " ",
876
+ ]
877
+ x: [
878
+ " ",
879
+ " ",
880
+ "_| _|",
881
+ " _|_| ",
882
+ "_| _|",
883
+ "_| _|",
884
+ " ",
885
+ " ",
886
+ ]
887
+ y: [
888
+ " ",
889
+ " ",
890
+ "_| _|",
891
+ "_| _|",
892
+ "_| _|",
893
+ " _|_|_|",
894
+ " _|",
895
+ " _|_| ",
896
+ ]
897
+ z: [
898
+ " ",
899
+ " ",
900
+ "_|_|_|_|",
901
+ " _| ",
902
+ " _| ",
903
+ "_|_|_|_|",
904
+ " ",
905
+ " ",
906
+ ]
@@ -1,6 +1,7 @@
1
1
  name: doom
2
2
  author: "Frans P. de Vries <fpv@xymph.iaf.nl>"
3
3
  char_height: 8
4
+ char_space: 0
4
5
  max_line_length: 14
5
6
  chars:
6
7
  "!": [
@@ -1,6 +1,7 @@
1
1
  name: standard
2
2
  author: "Glenn Chappell & Ian Chai"
3
3
  char_height: 6
4
+ char_space: 0
4
5
  max_line_length: 11
5
6
  chars:
6
7
  "!": [
@@ -1,6 +1,7 @@
1
1
  name: starwars
2
2
  author: "Ryan Youck (youck@cs.uregina.ca)"
3
3
  char_height: 7
4
+ char_space: 0
4
5
  max_line_length: 13
5
6
  chars:
6
7
  "!": [
@@ -1,6 +1,7 @@
1
1
  name: straight
2
2
  author: "Bas Meijer (meijer@info.win.tue.nl)"
3
3
  char_height: 4
4
+ char_space: 0
4
5
  max_line_length: 6
5
6
  chars:
6
7
  "!": [
@@ -6,12 +6,21 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "tty-font"
7
7
  spec.version = TTY::Font::VERSION
8
8
  spec.authors = ["Piotr Murach"]
9
- spec.email = []
9
+ spec.email = ["me@piotrmurach.com"]
10
10
  spec.summary = %q{Terminal fonts}
11
11
  spec.description = %q{Write text in large stylized characters using a variety of terminal friendly fonts.}
12
- spec.homepage = 'https://github.com/piotrmurach/tty-spinner'
12
+ spec.homepage = "https://piotrmurach.github.io/tty"
13
13
  spec.license = "MIT"
14
-
14
+ if spec.respond_to?(:metadata=)
15
+ spec.metadata = {
16
+ "allowed_push_host" => "https://rubygems.org",
17
+ "bug_tracker_uri" => "https://github.com/piotrmurach/tty-font/issues",
18
+ "changelog_uri" => "https://github.com/piotrmurach/tty-font/blob/master/CHANGELOG.md",
19
+ "documentation_uri" => "https://www.rubydoc.info/gems/tty-font",
20
+ "homepage_uri" => spec.homepage,
21
+ "source_code_uri" => "https://github.com/piotrmurach/tty-font"
22
+ }
23
+ end
15
24
  spec.files = Dir['{lib,spec,examples}/**/*.{rb,yml}']
16
25
  spec.files += Dir['{bin,tasks}/*', 'tty-font.gemspec']
17
26
  spec.files += Dir['{fonts/*.md}', 'README.md', 'CHANGELOG.md']
@@ -21,7 +30,7 @@ Gem::Specification.new do |spec|
21
30
 
22
31
  spec.required_ruby_version = '>= 2.0.0'
23
32
 
24
- spec.add_development_dependency "bundler", "~> 1.16"
25
- spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "bundler", ">= 1.5"
26
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
+ spec.add_development_dependency "rake"
27
36
  end
metadata CHANGED
@@ -1,60 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tty-font
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-01 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '3.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '0'
55
55
  description: Write text in large stylized characters using a variety of terminal friendly
56
56
  fonts.
57
- email: []
57
+ email:
58
+ - me@piotrmurach.com
58
59
  executables: []
59
60
  extensions: []
60
61
  extra_rdoc_files: []
@@ -66,35 +67,44 @@ files:
66
67
  - bin/console
67
68
  - bin/setup
68
69
  - examples/3d.rb
70
+ - examples/block.rb
69
71
  - examples/doom.rb
70
72
  - examples/standard.rb
71
73
  - examples/star_wars_logo.rb
72
74
  - examples/starwars.rb
73
75
  - examples/straight.rb
74
76
  - fonts/3d.md
77
+ - fonts/block.md
75
78
  - fonts/doom.md
76
79
  - fonts/standard.md
77
80
  - fonts/starwars.md
78
81
  - fonts/straight.md
79
82
  - lib/tty-font.rb
80
83
  - lib/tty/font.rb
81
- - lib/tty/font/3d.yml
82
- - lib/tty/font/doom.yml
83
84
  - lib/tty/font/result.rb
84
- - lib/tty/font/standard.yml
85
- - lib/tty/font/starwars.yml
86
- - lib/tty/font/straight.yml
87
85
  - lib/tty/font/version.rb
86
+ - lib/tty/fonts/3d.yml
87
+ - lib/tty/fonts/block.yml
88
+ - lib/tty/fonts/doom.yml
89
+ - lib/tty/fonts/standard.yml
90
+ - lib/tty/fonts/starwars.yml
91
+ - lib/tty/fonts/straight.yml
88
92
  - spec/spec_helper.rb
89
93
  - spec/unit/write_spec.rb
90
94
  - tasks/console.rake
91
95
  - tasks/coverage.rake
92
96
  - tasks/spec.rake
93
97
  - tty-font.gemspec
94
- homepage: https://github.com/piotrmurach/tty-spinner
98
+ homepage: https://piotrmurach.github.io/tty
95
99
  licenses:
96
100
  - MIT
97
- metadata: {}
101
+ metadata:
102
+ allowed_push_host: https://rubygems.org
103
+ bug_tracker_uri: https://github.com/piotrmurach/tty-font/issues
104
+ changelog_uri: https://github.com/piotrmurach/tty-font/blob/master/CHANGELOG.md
105
+ documentation_uri: https://www.rubydoc.info/gems/tty-font
106
+ homepage_uri: https://piotrmurach.github.io/tty
107
+ source_code_uri: https://github.com/piotrmurach/tty-font
98
108
  post_install_message:
99
109
  rdoc_options: []
100
110
  require_paths:
@@ -110,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
120
  - !ruby/object:Gem::Version
111
121
  version: '0'
112
122
  requirements: []
113
- rubyforge_project:
114
- rubygems_version: 2.7.3
123
+ rubygems_version: 3.0.3
115
124
  signing_key:
116
125
  specification_version: 4
117
126
  summary: Terminal fonts