-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasciifont.py
80 lines (76 loc) · 2.85 KB
/
asciifont.py
1
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
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
from __future__ import unicode_literals
class AsciiFont( object ):
def __init__(self):
self.number = [[],[],[],[],[],[],[],[],[],[]]
self.number[0]=[' .oooo. ',
' d8P""Y8b ',
'888 888',
'888 888',
'888 888',
'"88b d88"',
' "Y8bd8P" ']
self.number[1]=[' .o ',
' o888 ',
' oH888 ',
' 888 ',
' 888 ',
' 888 ',
' od888bo ']
self.number[2]=[' .oooo. ',
'.dP""Y88b ',
' ]8P"',
' .d8P" ',
' .dP" ',
'.oP .o',
'8888888888']
self.number[3]=[' .oooo. ',
'.dP""Y88b ',
' ]8P"',
' <88b. ',
' "88b.',
'o. .88P ',
'"8bd88P" ']
self.number[4]=[' .o ',
' .d88 ',
' .d"888 ',
'.d" 888 ',
'88ooo888oo',
' 888 ',
' o888o ']
self.number[5]=[' oooooooo',
' dP"""""""',
'd88888b. ',
' "Y88b ',
' ]88 ',
'o. .88P ',
'"8bd88P" ']
self.number[6]=[' .ooo ',
' .88" ',
' d88" ',
'd888P"Ybo.',
'Y88[ ]88',
'"Y88 88P',
' "88bod8" ']
self.number[7]=[' ooooooooo',
'd"""""""8"',
' .8" ',
' .8" ',
' .8" ',
' .8" ',
' .8" ']
self.number[8]=[' .ooooo. ',
'd88" "8.',
'Y88.. .8"',
' "88888b. ',
'.8" ""88b',
'"8. .88P',
' "boood8" ']
self.number[9]=[' .ooooo. ',
'888" "Y88.',
'888 888',
' "Vbood888',
' 888"',
' .88P" ',
' .oP" ']
def __call__(self,num):
return self.number[num]