mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Merge pull request #3417 from rexrainbow/master
Bug fix: font might not sync to context
This commit is contained in:
commit
3591edcb73
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -15,6 +15,7 @@ var Loader = {
|
|||
|
||||
FileTypes: require('./filetypes'),
|
||||
|
||||
CONST: require('./const'),
|
||||
File: require('./File'),
|
||||
FileTypesManager: require('./FileTypesManager'),
|
||||
GetURL: require('./GetURL'),
|
||||
|
|
Loading…
Reference in a new issue