Change variable assignment (#11247)

Remove unused variable assignment in `src/core/fonts.js`
This commit is contained in:
Pedro Luiz Cabral Salomon Prado 2019-10-15 19:39:25 -03:00 committed by Tim van der Meij
parent ecdf1375b8
commit 4d0c759b7f

View File

@ -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