fixed reading from sream
This commit is contained in:
parent
7d5470a7e5
commit
c4d81646dc
5
fonts.js
5
fonts.js
@ -386,11 +386,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.textMatrix = properties.textMatrix || IDENTITY_MATRIX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user