added support for instruction disassembly in saveXML()

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@73 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
Just 2000-02-01 15:29:03 +00:00
parent de7a3c4aa1
commit 53602486b4

View File

@ -42,7 +42,7 @@ Dumping 'prep' table...
"""
#
# $Id: __init__.py,v 1.12 2000-01-17 18:57:15 Just Exp $
# $Id: __init__.py,v 1.13 2000-02-01 15:29:03 Just Exp $
#
__version__ = "1.0a6"
@ -163,7 +163,7 @@ class TTFont:
writer.close()
def saveXML(self, fileOrPath, progress=None,
tables=None, skipTables=None, splitTables=0):
tables=None, skipTables=None, splitTables=0, disassembleInstructions=1):
"""Export the font as TTX (an XML-based text file), or as a series of text
files when splitTables is true. In the latter case, the 'fileOrPath'
argument should be a path to a directory.
@ -172,6 +172,8 @@ class TTFont:
to skip, but only when the 'tables' argument is false.
"""
import xmlWriter
self.disassembleInstructions = disassembleInstructions
if not tables:
tables = self.keys()
if skipTables: