File tree Expand file tree Collapse file tree
src/gameobjects/bitmaptext/static Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ var Components = require('../../components');
99var GameObject = require ( '../../GameObject' ) ;
1010var GetBitmapTextSize = require ( '../GetBitmapTextSize' ) ;
1111var ParseFromAtlas = require ( '../ParseFromAtlas' ) ;
12+ var ParseXMLBitmapFont = require ( '../ParseXMLBitmapFont' ) ;
1213var Render = require ( './BitmapTextRender' ) ;
1314
1415/**
@@ -616,4 +617,20 @@ BitmapText.ALIGN_RIGHT = 2;
616617 */
617618BitmapText . ParseFromAtlas = ParseFromAtlas ;
618619
620+ /**
621+ * Parse an XML font to Bitmap Font data for the Bitmap Font cache.
622+ *
623+ * @name Phaser.GameObjects.BitmapText.ParseXMLBitmapFont
624+ * @type {function }
625+ * @since 3.17.0
626+ *
627+ * @param {XMLDocument } xml - The XML Document to parse the font from.
628+ * @param {integer } [xSpacing=0] - The x-axis spacing to add between each letter.
629+ * @param {integer } [ySpacing=0] - The y-axis spacing to add to the line height.
630+ * @param {Phaser.Textures.Frame } [frame] - The texture frame to take into account while parsing.
631+ *
632+ * @return {Phaser.GameObjects.BitmapText.Types.BitmapFontData } The parsed Bitmap Font data.
633+ */
634+ BitmapText . ParseXMLBitmapFont = ParseXMLBitmapFont ;
635+
619636module . exports = BitmapText ;
You can’t perform that action at this time.
0 commit comments