mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Lazify GlyphsUnicode.
This commit is contained in:
parent
58329f7f92
commit
4ef20de429
4 changed files with 4455 additions and 4433 deletions
|
@ -31,7 +31,7 @@ var Util = sharedUtil.Util;
|
|||
var bytesToString = sharedUtil.bytesToString;
|
||||
var error = sharedUtil.error;
|
||||
var Stream = coreStream.Stream;
|
||||
var GlyphsUnicode = coreGlyphList.GlyphsUnicode;
|
||||
var getGlyphsUnicode = coreGlyphList.getGlyphsUnicode;
|
||||
|
||||
var coreFonts; // see _setCoreFonts below
|
||||
var CFFParser; // = coreFonts.CFFParser;
|
||||
|
@ -670,7 +670,7 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
|
|||
this.gsubrs = cffInfo.gsubrs || [];
|
||||
this.subrs = cffInfo.subrs || [];
|
||||
this.cmap = cmap;
|
||||
this.glyphNameMap = glyphNameMap || GlyphsUnicode;
|
||||
this.glyphNameMap = glyphNameMap || getGlyphsUnicode();
|
||||
|
||||
this.compiledGlyphs = [];
|
||||
this.gsubrsBias = (this.gsubrs.length < 1240 ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue