use version from fontTools.__init__.py

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@184 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2002-05-02 15:23:25 +00:00
parent 9b7b8e0f5b
commit d04a3bb4f9

View File

@ -42,15 +42,14 @@ Dumping 'prep' table...
""" """
# #
# $Id: __init__.py,v 1.18 2002-05-01 21:06:11 jvr Exp $ # $Id: __init__.py,v 1.19 2002-05-02 15:23:25 jvr Exp $
# #
__version__ = "1.0a6"
import os import os
import string import string
import types import types
class TTLibError(Exception): pass class TTLibError(Exception): pass
@ -173,6 +172,7 @@ class TTFont:
list of tables to dump. The 'skipTables' argument may be a list of tables list of tables to dump. The 'skipTables' argument may be a list of tables
to skip, but only when the 'tables' argument is false. to skip, but only when the 'tables' argument is false.
""" """
from fontTools import version
import xmlWriter import xmlWriter
self.disassembleInstructions = disassembleInstructions self.disassembleInstructions = disassembleInstructions
@ -189,7 +189,7 @@ class TTFont:
if not splitTables: if not splitTables:
writer = xmlWriter.XMLWriter(fileOrPath) writer = xmlWriter.XMLWriter(fileOrPath)
writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1], writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1],
ttLibVersion=__version__) ttLibVersion=version)
writer.newline() writer.newline()
writer.newline() writer.newline()
else: else:
@ -204,7 +204,7 @@ class TTFont:
if splitTables: if splitTables:
writer = xmlWriter.XMLWriter(fileNameTemplate % tag2identifier(tag)) writer = xmlWriter.XMLWriter(fileNameTemplate % tag2identifier(tag))
writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1], writer.begintag("ttFont", sfntVersion=`self.sfntVersion`[1:-1],
ttLibVersion=__version__) ttLibVersion=version)
writer.newline() writer.newline()
writer.newline() writer.newline()
table = self[tag] table = self[tag]