Close glyphs over composite 'glyf's
diff --git a/pyotlss.py b/pyotlss.py
index dbb2f0f..c8bb2ee 100755
--- a/pyotlss.py
+++ b/pyotlss.py
@@ -420,6 +420,16 @@
 	# Convert to glyph names
 	glyphs = [g if g in names else font.getGlyphName(int(g)) for g in glyphs]
 
+	# Close over composite glyphs
+	if 'glyf' in font:
+		glyf = font['glyf']
+		for g in glyphs:
+			gl = glyf[g]
+			if gl.isComposite ():
+				for c in gl.components:
+					if c.glyphName not in glyphs:
+						glyphs.append (c.glyphName)
+
 	if xml:
 		import xmlWriter
 		writer = xmlWriter.XMLWriter (sys.stdout)