[ttx] ignore missing 'head' if no --recalc-timestamp option is passed
This commit is contained in:
parent
8af488a1b3
commit
ee4f4695e6
@ -271,7 +271,7 @@ def ttCompile(input, output, options):
|
||||
allowVID=options.allowVID)
|
||||
ttf.importXML(input)
|
||||
|
||||
if not options.recalcTimestamp:
|
||||
if not options.recalcTimestamp and 'head' in ttf:
|
||||
# use TTX file modification time for head "modified" timestamp
|
||||
mtime = os.path.getmtime(input)
|
||||
ttf['head'].modified = timestampSinceEpoch(mtime)
|
||||
|
Loading…
x
Reference in New Issue
Block a user