Allow loading zero-length tables
Fixes https://github.com/behdad/fonttools/issues/106
diff --git a/Lib/fontTools/ttLib/sfnt.py b/Lib/fontTools/ttLib/sfnt.py
index 0fd12c1..c6bc93a 100644
--- a/Lib/fontTools/ttLib/sfnt.py
+++ b/Lib/fontTools/ttLib/sfnt.py
@@ -55,14 +55,7 @@
for i in range(self.numTables):
entry = self.DirectoryEntry()
entry.fromFile(self.file)
- if entry.length > 0:
- self.tables[Tag(entry.tag)] = entry
- else:
- # Ignore zero-length tables. This doesn't seem to be documented,
- # yet it's apparently how the Windows TT rasterizer behaves.
- # Besides, at least one font has been sighted which actually
- # *has* a zero-length table.
- pass
+ self.tables[Tag(entry.tag)] = entry
# Load flavor data if any
if self.flavor == "woff":