[_g_l_y_f] use short empty element notation for glyf instructions
This commit is contained in:
parent
0918f7cf3e
commit
3c46a4280f
@ -371,10 +371,13 @@ class Glyph(object):
|
|||||||
writer.newline()
|
writer.newline()
|
||||||
haveInstructions = self.numberOfContours > 0
|
haveInstructions = self.numberOfContours > 0
|
||||||
if haveInstructions:
|
if haveInstructions:
|
||||||
writer.begintag("instructions")
|
if self.program:
|
||||||
writer.newline()
|
writer.begintag("instructions")
|
||||||
self.program.toXML(writer, ttFont)
|
writer.newline()
|
||||||
writer.endtag("instructions")
|
self.program.toXML(writer, ttFont)
|
||||||
|
writer.endtag("instructions")
|
||||||
|
else:
|
||||||
|
writer.simpletag("instructions")
|
||||||
writer.newline()
|
writer.newline()
|
||||||
|
|
||||||
def fromXML(self, name, attrs, content, ttFont):
|
def fromXML(self, name, attrs, content, ttFont):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user