mirror of
https://gitlab.com/MisterBiggs/bdfparse.git
synced 2025-08-16 02:14:52 +00:00
preparing code for official release
This commit is contained in:
12
bdfparse.py
12
bdfparse.py
@@ -1,4 +1,5 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
def parse_properties(bdfFile):
|
||||
@@ -176,3 +177,14 @@ def parse_chars(bdfFile):
|
||||
if bdf.readline().startswith("ENDFONT"):
|
||||
return font
|
||||
return font
|
||||
|
||||
|
||||
font = parse_chars("9x18.bdf")
|
||||
matrix = font["A"]
|
||||
text = "nson"
|
||||
|
||||
for letter in text:
|
||||
matrix = np.concatenate((matrix, font[letter]), axis=1)
|
||||
|
||||
plt.imshow(matrix)
|
||||
plt.show()
|
||||
|
Reference in New Issue
Block a user