You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
426 B

import sys
"""
Generates glyphs entries for an FLF file.
It does not generate the file header.
Run like: make_flf.py [glyph_height]
"""
height = int(sys.argv[1])
flf = ''
for chr_code in range(32, 126):
for line in range(height):
flf += " "
if line == 0:
flf += chr(chr_code)
else:
flf += " "
flf += "@"
if line == height-1:
flf += "@"
flf += "\n"
print(flf)