mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Move the creation of canvas path fonts to the worker.
This commit is contained in:
parent
81c9eeef4b
commit
bb2529de03
16 changed files with 131 additions and 76 deletions
|
@ -18,7 +18,7 @@
|
|||
ExpertSubsetCharset, FileReaderSync, GlyphsUnicode,
|
||||
info, isArray, isNum, ISOAdobeCharset, Stream,
|
||||
stringToBytes, TextDecoder, TODO, warn, Lexer, Util,
|
||||
FONT_IDENTITY_MATRIX */
|
||||
FONT_IDENTITY_MATRIX, FontRendererFactory, shadow */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -2791,6 +2791,10 @@ var Font = (function FontClosure() {
|
|||
font: null,
|
||||
mimetype: null,
|
||||
encoding: null,
|
||||
get renderer() {
|
||||
var renderer = FontRendererFactory.create(this);
|
||||
return shadow(this, 'renderer', renderer);
|
||||
},
|
||||
|
||||
exportData: function Font_exportData() {
|
||||
var data = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue