You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/Text.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,10 @@
5
5
*/
6
6
7
7
/**
8
-
* Create a new `Text` object.
8
+
* Create a new `Text` object. This uses a local hidden Canvas object and renders the type into it. It then makes a texture from this for renderning to the view.
9
+
* Because of this you can only display fonts that are currently loaded and available to the browser. It won't load the fonts for you.
10
+
* Here is a compatibility table showing the available default fonts across different mobile browsers: http://www.jordanm.co.uk/tinytype
11
+
*
9
12
* @class Phaser.Text
10
13
* @constructor
11
14
* @param {Phaser.Game} game - Current game instance.
0 commit comments