From 53602486b491e003b8dbba0b1c86709bd0c011bf Mon Sep 17 00:00:00 2001 From: Just Date: Tue, 1 Feb 2000 15:29:03 +0000 Subject: [PATCH] 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 --- Lib/fontTools/ttLib/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/__init__.py b/Lib/fontTools/ttLib/__init__.py index 2ae828536..26232e548 100644 --- a/Lib/fontTools/ttLib/__init__.py +++ b/Lib/fontTools/ttLib/__init__.py @@ -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: