mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Merge pull request #4447 from nnethercote/object-reduction
Allocate fewer objects
This commit is contained in:
commit
1802ffffb8
5 changed files with 118 additions and 78 deletions
|
@ -812,11 +812,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
|
||||
if (chunkBuf.length > 0) {
|
||||
var chunk = chunkBuf.join('');
|
||||
var bidiResult = PDFJS.bidi(chunk, -1, font.vertical);
|
||||
var bidiText = {
|
||||
str: bidiResult.str,
|
||||
dir: bidiResult.dir
|
||||
};
|
||||
var bidiText = PDFJS.bidi(chunk, -1, font.vertical);
|
||||
var renderParams = textState.calcRenderParams(preprocessor.ctm);
|
||||
var fontHeight = textState.fontSize * renderParams.vScale;
|
||||
var fontAscent = font.ascent ? font.ascent * fontHeight :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue