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.
25 lines
519 B
25 lines
519 B
class tdf:
|
|
def __init__(self, f):
|
|
self.fonts = []
|
|
f.read(1) # character 19
|
|
if f.read(18) == b"TheDraw FONTS file"
|
|
|
|
class font:
|
|
def __init__(self):
|
|
self.font_name_length = None
|
|
self.font_name = None
|
|
self.font_type = None
|
|
self.letter_spacing = None
|
|
self.block_size = None
|
|
self.characters_define = None
|
|
self.data = None
|
|
|
|
f = open("pittyx.tdf", "rb")
|
|
loaded = tdf(f)
|
|
print(r[25:25+12])
|
|
f.close()
|
|
|
|
"""
|
|
for b in r:
|
|
print(b)
|
|
""" |