How to increase the Text size

Anything libgdx related goes here!

How to increase the Text size

Postby sriramjava86 » Sat Dec 25, 2010 5:45 am

Hi All,
By using BitmapFont iam drawing MultipleLines of text. I can set the Color of the text by using
font.setColor(Color.RED);

How can i increase the text size.
Add a font file(XXXX.fnt) in assets add use that file to font object. Is it correct way to increase the size of
the text.
Is there any other way to increase the size of the text.


Thanks in Advance,
sriramjava86
 
Posts: 16
Joined: Sat Dec 11, 2010 6:50 am

Re: How to increase the Text size

Postby laizhe » Sat Dec 25, 2010 8:36 am

font.setScale()
laizhe
 
Posts: 15
Joined: Fri Nov 26, 2010 6:54 am

Re: How to increase the Text size

Postby sriramjava86 » Sat Dec 25, 2010 11:06 am

Hi laizhe,
Thanks for ur replay.

I didn't find setScale() method in BitmapFont class.

Can u please show me where this method available in libgdx API.


Thanks in Advance,
sriramjava86
 
Posts: 16
Joined: Sat Dec 11, 2010 6:50 am

Re: How to increase the Text size

Postby consiliens » Sat Dec 25, 2010 2:26 pm

sriramjava86 wrote:I didn't find setScale() method in BitmapFont class.

It's in trunk.
consiliens
 
Posts: 177
Joined: Wed Oct 27, 2010 6:55 am

Re: How to increase the Text size

Postby sriramjava86 » Fri Dec 31, 2010 9:03 am

Hi,
I saw the font.setScale() method in libgdx trunk.

Now this method is deprecated. when iam trying to use this method getting error, In API also i didn't find this method.

Is there any alternative way to increase the text size.
sriramjava86
 
Posts: 16
Joined: Sat Dec 11, 2010 6:50 am

Re: How to increase the Text size

Postby NateS » Fri Dec 31, 2010 9:18 am

NateS
 
Posts: 1980
Joined: Fri Nov 12, 2010 11:08 am


Return to Libgdx

Who is online

Users browsing this forum: diazndc and 1 guest