This commit is contained in:
Kovid Goyal 2019-11-23 07:41:59 +05:30
parent 8d07d6bf55
commit 55e8d547af
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -133,7 +133,7 @@ class VerticalHeader(UnknownTable):
setattr(self, f, val) setattr(self, f, val)
raw = vmtx.raw raw = vmtx.raw
num = self.number_of_h_metrics num = self.number_of_v_metrics
if len(raw) < 4*num: if len(raw) < 4*num:
raise UnsupportedFont('The vmtx table has insufficient data') raise UnsupportedFont('The vmtx table has insufficient data')
long_hor_metric = raw[:4*num] long_hor_metric = raw[:4*num]