-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
cat: canvas-renderingstatus: PR proposedan active pull request should fix this issuean active pull request should fix this issuetype: improvement
Description
When I am loading a font in the background and add it to the dom afterwards, the paper view does not recognize the change.
The function update says:
update: function() {
if (!this._needsUpdate)
return false;
var project = this._project,
ctx = this._context,
size = this._viewSize;
ctx.clearRect(0, 0, size.width + 1, size.height + 1);
if (project)
project.draw(ctx, this._matrix, this._pixelRatio);
this._needsUpdate = false;
return true;
}
So add a flag forceUpdate
to the function.
sapics and kflorence
Metadata
Metadata
Assignees
Labels
cat: canvas-renderingstatus: PR proposedan active pull request should fix this issuean active pull request should fix this issuetype: improvement