cores/video/VideoTerminal: Avoid downloading font is present locally.

This commit is contained in:
Florent Kermarrec 2022-05-12 16:08:42 +02:00
parent 7e1d2bdf9b
commit b020d4cf62
1 changed files with 4 additions and 2 deletions

View File

@ -439,7 +439,9 @@ class VideoTerminal(Module):
# Font Mem. # Font Mem.
# --------- # ---------
os.system("wget https://github.com/enjoy-digital/litex/files/6076336/ter-u16b.txt") # FIXME: Store Font in LiteX? # FIXME: Store Font in LiteX?
if not os.path.exists("ter-u16b.bdf"):
os.system("wget https://github.com/enjoy-digital/litex/files/6076336/ter-u16b.txt")
os.system("mv ter-u16b.txt ter-u16b.bdf") os.system("mv ter-u16b.txt ter-u16b.bdf")
font = import_bdf_font("ter-u16b.bdf") font = import_bdf_font("ter-u16b.bdf")
font_width = 8 font_width = 8