mirror of
https://github.com/i-tu/Hasklig.git
synced 2024-10-05 14:47:22 +03:00
Python3 fix
This commit is contained in:
parent
db570b60e6
commit
64860d297f
@ -147,9 +147,9 @@ def getFontFormat(fontFilePath):
|
||||
header = f.read(256)
|
||||
head = header[:4]
|
||||
f.close()
|
||||
if head == "OTTO":
|
||||
if head == b"OTTO":
|
||||
return "OTF"
|
||||
elif head in ("\0\1\0\0", "true"):
|
||||
elif head in (b"\0\1\0\0", b"true"):
|
||||
return "TTF"
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user