mirror of
https://gitlab.com/MisterBiggs/bdfparse.git
synced 2025-06-16 06:26:39 +00:00
.bdf to NumPy
This project takes a .bdf file and turns it into a NumPy Array with an intended use with LED matrix displays. My LED Stock Ticker uses this package. A good list of .bdf files can be found here
Usage
import numpy as np
import matplotlib.pyplot as plt
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()
Which outputs:
Description
https://pypi.org/project/bdfparse/
A package for reading .bdf files into NumPy arrays.
Languages
Python
100%