mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Change variable assignment (#11247)
Remove unused variable assignment in `src/core/fonts.js`
This commit is contained in:
parent
ecdf1375b8
commit
4d0c759b7f
1 changed files with 1 additions and 2 deletions
|
@ -1817,10 +1817,9 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
// The first glyph is duplicated.
|
||||
var numGlyphsOut = dupFirstEntry ? numGlyphs + 1 : numGlyphs;
|
||||
var locaData = loca.data;
|
||||
var locaDataSize = itemSize * (1 + numGlyphsOut);
|
||||
// Resize loca table to account for duplicated glyph.
|
||||
locaData = new Uint8Array(locaDataSize);
|
||||
var locaData = new Uint8Array(locaDataSize);
|
||||
locaData.set(loca.data.subarray(0, locaDataSize));
|
||||
loca.data = locaData;
|
||||
// removing the invalid glyphs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue