mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
1.5 KiB
1.5 KiB
Phaser 3.60.0 Change Log
Return to the Change Log index.
Bitmap Text Game Object New Features
BitmapText.setLineSpacing
is 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.lineSpacing
for the property rather than the method.
Bitmap Text Game Object Updates
- The
BitmapText
Game Object has two new read-only propertiesdisplayWidth
anddisplayHeight
. This allows the BitmapText to correctly use theGetBounds
component. - The
BitmapText
Game Object now has theGetBounds
component added to it, meaning you can now correctly get its dimensions as part of a Container. Fix #6237 (thanks @likwidgames) - The
GetBitmapTextSize
function now includes an extra property in the resultingBitmapTextCharacter
object calledidx
which 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
GetBitmapTextSize
function 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.