Fix failing tests

This commit is contained in:
Behdad Esfahbod 2016-09-27 19:53:58 +02:00
parent 5b479716bc
commit 3ec06df194
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ class CFFWriter(object):
posList = [0] posList = [0]
cffOffSize = calcOffSize(lastPosList[-1]) cffOffSize = calcOffSize(lastPosList[-1])
headerBytes = self.data[0] headerBytes = self.data[0]
headerBytes = headerBytes[:-1] + chr(cffOffSize) headerBytes = headerBytes[:-1] + bytechr(cffOffSize)
self.data[0] = headerBytes self.data[0] = headerBytes
for item in self.data: for item in self.data:
if hasattr(item, "toFile"): if hasattr(item, "toFile"):

View File

@ -2,7 +2,7 @@
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.0"> <ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.0">
<GSUB> <GSUB>
<Version value="1.0"/> <Version value="0x00010000"/>
<ScriptList> <ScriptList>
<!-- ScriptCount=2 --> <!-- ScriptCount=2 -->
<ScriptRecord index="0"> <ScriptRecord index="0">