0

I am trying to show the string "Hello" using the BitmapFont. While doing so I wish to scale/strech the word "Hello" horizontally (only in x-axis) from scale 0 to scale 1.

  1. How I can achieve this.
  2. Does Universal tween engine can be used for this requirement ? I have this question since Bitmap is not a Texture / Sprite.
  3. Can we use Glyph and TextBounds

Please advice with a example. Thanks

iappmaker
  • 2,945
  • 9
  • 35
  • 76

1 Answers1

0

If you don't want to use free type generator as recommended, you can set scale of bitmapFont vertically and horizontally like this:

BitmapFont font = new BitmapFont(); float hScale = 10f; float vScale = 1f; font.getData().setScale(hScale, vScale);

But if you have used free type generator as this link, you can do this as below:

fontParameter.spaceX = 10;
Community
  • 1
  • 1
Nasser Tahani
  • 725
  • 12
  • 33