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:
parent
de7a3c4aa1
commit
53602486b4
@ -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"
|
__version__ = "1.0a6"
|
||||||
@ -163,7 +163,7 @@ class TTFont:
|
|||||||
writer.close()
|
writer.close()
|
||||||
|
|
||||||
def saveXML(self, fileOrPath, progress=None,
|
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
|
"""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'
|
files when splitTables is true. In the latter case, the 'fileOrPath'
|
||||||
argument should be a path to a directory.
|
argument should be a path to a directory.
|
||||||
@ -172,6 +172,8 @@ class TTFont:
|
|||||||
to skip, but only when the 'tables' argument is false.
|
to skip, but only when the 'tables' argument is false.
|
||||||
"""
|
"""
|
||||||
import xmlWriter
|
import xmlWriter
|
||||||
|
|
||||||
|
self.disassembleInstructions = disassembleInstructions
|
||||||
if not tables:
|
if not tables:
|
||||||
tables = self.keys()
|
tables = self.keys()
|
||||||
if skipTables:
|
if skipTables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user