aboutsummaryrefslogtreecommitdiff
path: root/Lib/fontTools/ttLib/woff2.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-30 14:11:58 -0700
committerElliott Hughes <enh@google.com>2018-11-05 12:18:33 -0800
commit69c9acab6a81c7bce36329972332cdbd0d11f449 (patch)
tree34a739b3dd0e612719459f0e5da542200be4c5fe /Lib/fontTools/ttLib/woff2.py
parent467aa0fba5e99b4bcc2651a15843d5b37e7929c1 (diff)
downloadfonttools-69c9acab6a81c7bce36329972332cdbd0d11f449.tar.gz
Ran `tools/external_updater/updater.sh update fonttools`. Bug: N/A Test: builds Change-Id: I59a0dfbf4585d3a95d2120d49730321b84c884ff
Diffstat (limited to 'Lib/fontTools/ttLib/woff2.py')
-rw-r--r--Lib/fontTools/ttLib/woff2.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/fontTools/ttLib/woff2.py b/Lib/fontTools/ttLib/woff2.py
index 1952682c..c0c0e704 100644
--- a/Lib/fontTools/ttLib/woff2.py
+++ b/Lib/fontTools/ttLib/woff2.py
@@ -582,8 +582,7 @@ class WOFF2LocaTable(getTableClass('loca')):
locations.append(self.locations[i] // 2)
else:
locations = array.array("I", self.locations)
- if sys.byteorder != "big":
- locations.byteswap()
+ if sys.byteorder != "big": locations.byteswap()
data = locations.tostring()
else:
# use the most compact indexFormat given the current glyph offsets
@@ -627,8 +626,7 @@ class WOFF2GlyfTable(getTableClass('glyf')):
self.bboxStream = self.bboxStream[bboxBitmapSize:]
self.nContourStream = array.array("h", self.nContourStream)
- if sys.byteorder != "big":
- self.nContourStream.byteswap()
+ if sys.byteorder != "big": self.nContourStream.byteswap()
assert len(self.nContourStream) == self.numGlyphs
if 'head' in ttFont: