Skip to content

Commit 8d4a341

Browse files
committed
[size] revise approach
the glyf table size was not valid with the previous approach, this change addresses it
1 parent a7eb48d commit 8d4a341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fontsize/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _calc_per_total_glyph_size(self):
3434
def _calc_table_sizes(self):
3535
tables = self.get_table_tags()
3636
for table in tables:
37-
self.tables[table] = len(self.ttfont.getTableData(table))
37+
self.tables[table] = self.ttfont.reader.tables[table].length
3838

3939
def get_table_tags(self):
4040
if self.ttfont.reader:

0 commit comments

Comments
 (0)