Merge pull request #10049 from morille/patch-1
Fix font-string variable name typo
This commit is contained in:
commit
1fe35b9ca1
@ -531,8 +531,8 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||||||
if (fontSize !== this._layoutTextLastFontSize ||
|
if (fontSize !== this._layoutTextLastFontSize ||
|
||||||
fontFamily !== this._layoutTextLastFontFamily) {
|
fontFamily !== this._layoutTextLastFontFamily) {
|
||||||
this._layoutTextCtx.font = fontSize + ' ' + fontFamily;
|
this._layoutTextCtx.font = fontSize + ' ' + fontFamily;
|
||||||
this._lastFontSize = fontSize;
|
this._layoutTextLastFontSize = fontSize;
|
||||||
this._lastFontFamily = fontFamily;
|
this._layoutTextLastFontFamily = fontFamily;
|
||||||
}
|
}
|
||||||
|
|
||||||
let width = this._layoutTextCtx.measureText(textDiv.textContent).width;
|
let width = this._layoutTextCtx.measureText(textDiv.textContent).width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user