Closed
Description
When testing the subsetter script, I came across a very complex font that apparently doesn’t use subroutines. The subsetter chokes on that ... I think the script has to check if there are any subroutines:
--- subset.py 2013-09-03 12:08:32.000000000 +0200
+++ subset.py 2013-09-03 12:47:09.000000000 +0200
@@ -1404,7 +1404,8 @@
if hasattr(font, 'FDSelect'):
all_subrs.extend(fd.Private.Subrs for fd in font.FDArray if hasattr(fd.Private, 'Subrs'))
else:
- all_subrs.append(font.Private.Subrs)
+ if hasattr(font.Private, 'Subrs'):
+ all_subrs.append(font.Private.Subrs)
# Prepare
for subrs in all_subrs:
if not subrs: continue
Metadata
Metadata
Assignees
Labels
No labels