fixed reading from sream
This commit is contained in:
parent
259f8c7317
commit
04b14f7b8a
5
fonts.js
5
fonts.js
@ -448,11 +448,12 @@ var Font = (function Font() {
|
|||||||
|
|
||||||
var fileArr = [];
|
var fileArr = [];
|
||||||
file.reset();
|
file.reset();
|
||||||
|
file = file.getBytes();
|
||||||
for (var i = 0, ii = file.length; i < ii; ++i)
|
for (var i = 0, ii = file.length; i < ii; ++i)
|
||||||
fileArr.push(file[i]);
|
fileArr.push(file[i]);
|
||||||
|
|
||||||
writeToFile(data, '/tmp/' + name + '_orig');
|
writeToFile(data, '/tmp/' + name + '_new');
|
||||||
writeToFile(fileArr, '/tmp/' + name + '_new');
|
writeToFile(fileArr, '/tmp/' + name + '_orig');
|
||||||
|
|
||||||
this.data = data;
|
this.data = data;
|
||||||
this.type = properties.type;
|
this.type = properties.type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user