We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ccd68f commit 2ce7209Copy full SHA for 2ce7209
1 file changed
source_code_gen/loadfont.py
@@ -36,9 +36,11 @@ def getcharset(filename: str):
36
a = ""
37
with open(filename, 'rb') as f:
38
f.seek(1626)
39
- a = f.read(256)
+ a = f.read(2048)
40
return a
41
42
+
43
44
def main():
45
scriptdir = path.dirname(__file__)
46
filename = scriptdir + "/Bm437_IBM_CGA.FON"
@@ -47,7 +49,14 @@ def main():
47
49
print(a)
48
50
print(plot8bitpatternastext(a,"*"," "))
51
s = getcharset(filename)
- print(s)
52
+ b = '[8,'
53
+ for i in range(2048):
54
+ b += str(s[i])
55
+ if i< 2047:
56
+ b += ','
57
+ b += "]"
58
+ print(b)
59
60
61
62
if __name__ == "__main__":
0 commit comments