Merge pull request #3417 from rexrainbow/master

Bug fix: font might not sync to context
This commit is contained in:
Richard Davey 2018-03-20 00:34:51 +00:00 committed by GitHub
commit 3591edcb73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -486,6 +486,8 @@ var Text = new Class({
{
if (text === undefined) { text = this.text; }
this.style.syncFont(this.canvas, this.context);
var wrappedLines = this.runWordWrap(text);
return wrappedLines.split(this.splitRegExp);

View file

@ -15,6 +15,7 @@ var Loader = {
FileTypes: require('./filetypes'),
CONST: require('./const'),
File: require('./File'),
FileTypesManager: require('./FileTypesManager'),
GetURL: require('./GetURL'),