fixed reading from sream

This commit is contained in:
sbarman 2011-07-21 15:18:00 -07:00
parent 259f8c7317
commit 04b14f7b8a

View File

@ -448,11 +448,12 @@ var Font = (function Font() {
var fileArr = [];
file.reset();
file = file.getBytes();
for (var i = 0, ii = file.length; i < ii; ++i)
fileArr.push(file[i]);
writeToFile(data, '/tmp/' + name + '_orig');
writeToFile(fileArr, '/tmp/' + name + '_new');
writeToFile(data, '/tmp/' + name + '_new');
writeToFile(fileArr, '/tmp/' + name + '_orig');
this.data = data;
this.type = properties.type;