~ubuntu-branches/ubuntu/maverick/fonttools/maverick

« back to all changes in this revision

Viewing changes to Lib/fontTools/ttLib/tables/O_S_2f_2.py

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2008-07-24 00:03:02 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080724000302-0tediu4ysxkn6dyy
Tags: 2.2-2
* Fix dependencies to use Numpy instead of Numeric (Closes: #492010)
* Drop unneeded quilt build-dependency
* Support noopt in DEB_BUILD_OPTIONS
* Complies with policy 3.8.0, update Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
                        self.version = 0
100
100
                if self.version == 1:
101
101
                        sstruct.unpack2(OS2_format_1_addition, data, self)
102
 
                elif self.version in (2, 3):
 
102
                elif self.version in (2, 3, 4):
103
103
                        sstruct.unpack2(OS2_format_2_addition, data, self)
104
104
                elif self.version <> 0:
105
105
                        from fontTools import ttLib
113
113
                        data = sstruct.pack(OS2_format_0, self)
114
114
                elif self.version == 1:
115
115
                        data = sstruct.pack(OS2_format_1, self)
116
 
                elif self.version in (2, 3):
 
116
                elif self.version in (2, 3, 4):
117
117
                        data = sstruct.pack(OS2_format_2, self)
118
118
                else:
119
119
                        from fontTools import ttLib
124
124
        def toXML(self, writer, ttFont):
125
125
                if self.version == 1:
126
126
                        format = OS2_format_1
127
 
                elif self.version in (2, 3):
 
127
                elif self.version in (2, 3, 4):
128
128
                        format = OS2_format_2
129
129
                else:
130
130
                        format = OS2_format_0