mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix font-string variable name typo
The font-string rebuild condition is always satisfied because the concerned variables are never set.
This commit is contained in:
parent
d692737670
commit
8671081001
1 changed files with 2 additions and 2 deletions
|
@ -531,8 +531,8 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
if (fontSize !== this._layoutTextLastFontSize ||
|
||||
fontFamily !== this._layoutTextLastFontFamily) {
|
||||
this._layoutTextCtx.font = fontSize + ' ' + fontFamily;
|
||||
this._lastFontSize = fontSize;
|
||||
this._lastFontFamily = fontFamily;
|
||||
this._layoutTextLastFontSize = fontSize;
|
||||
this._layoutTextLastFontFamily = fontFamily;
|
||||
}
|
||||
|
||||
let width = this._layoutTextCtx.measureText(textDiv.textContent).width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue