Move chars to glyphs conversion to the worker.

This commit is contained in:
Brendan Dahl 2013-07-31 14:01:55 -07:00
parent 8d386a5368
commit efa8f561a5
3 changed files with 33 additions and 23 deletions

View file

@ -622,9 +622,9 @@ var WorkerTransport = (function WorkerTransportClosure() {
var font;
if ('error' in exportedData) {
font = new ErrorFont(exportedData.error);
warn('Error during font loading: ' + font.error);
this.commonObjs.resolve(id, font);
var error = exportedData.error;
warn('Error during font loading: ' + error);
this.commonObjs.resolve(id, error);
break;
} else {
font = new Font(exportedData);