Home | History | Annotate | Download | only in tables

Lines Matching refs:rawdata

19 	def __init__(self, glyphName=None, referenceGlyphName=None, usReserved1=0, usReserved2=0, imageFormatTag=None, imageData=None, rawdata=None, gid=0):
25 self.rawdata = rawdata
31 if self.rawdata is None:
34 if len(self.rawdata) > 0:
35 if len(self.rawdata) < sbixBitmapHeaderFormatSize:
37 #print "Bitmap %i header too short: Expected %x, got %x." % (self.gid, sbixBitmapHeaderFormatSize, len(self.rawdata))
40 sstruct.unpack(sbixBitmapHeaderFormat, self.rawdata[:sbixBitmapHeaderFormatSize], self)
44 gid, = struct.unpack(">H", self.rawdata[sbixBitmapHeaderFormatSize:])
47 self.imageData = self.rawdata[sbixBitmapHeaderFormatSize:]
50 del self.rawdata
61 self.rawdata = ""
63 self.rawdata = sstruct.pack(sbixBitmapHeaderFormat, self) + self.imageData