1.7 KiB
1.7 KiB
Phaser 3.60.0 Change Log
Return to the Change Log index.
Bitmap Text Game Object New Features
BitmapText.setLineSpacingis a new method that allows you to set the vertical spacing between lines in multi-line BitmapText Game Objects. It works in the same was as spacing for Text objects and the spacing value can be positive or negative. See alsoBitmapText.lineSpacingfor the property rather than the method.
Bitmap Text Game Object Updates
- The
BitmapTextGame Object has two new read-only propertiesdisplayWidthanddisplayHeight. This allows the BitmapText to correctly use theGetBoundscomponent. - The
BitmapTextGame Object now has theGetBoundscomponent added to it, meaning you can now correctly get its dimensions as part of a Container. Fix #6237 (thanks @likwidgames) - The
GetBitmapTextSizefunction now includes an extra property in the resultingBitmapTextCharacterobject calledidxwhich is the index of the character within the Bitmap Text, without factoring in any word wrapping (thanks @JaroVDH)
Bitmap Text Game Object Bug Fixes
- BitmapText rendering wouldn't correctly apply per-character kerning offsets. These are now implemented during rendering (thanks @arbassic)
- An error in the
GetBitmapTextSizefunction caused kerning to not be applied correctly to Bitmap Text objects. This now works across WebGL and Canvas (thanks @arbassic @TJ09)
Return to the Change Log index.
📖 Read the Phaser 3 API Docs 💻 Browse 2000+ Code Examples 🤝 Join the awesome Phaser Discord