Merge pull request #6 from moyogo/setflag

Only set bit 4 instead
This commit is contained in:
Wei H 2015-03-22 17:34:41 +01:00
commit 14a16d09c6

View File

@ -16,7 +16,7 @@ if 'glyf' in font:
if glyph.isComposite(): if glyph.isComposite():
glyph.expand(glyf) glyph.expand(glyf)
for component in glyph.components: for component in glyph.components:
component.flags = 0x4 component.flags |= 0x4
glyph.compact(glyf) glyph.compact(glyf)
outputTTF = makeOutputFileName(inputTTF, '', extension) outputTTF = makeOutputFileName(inputTTF, '', extension)
font.save(outputTTF) font.save(outputTTF)