I can't scale bitmap font!!

Anything libgdx related goes here!

Re: I can't scale bitmap font!!

Postby obigu » Fri Aug 23, 2019 2:30 pm

Maybe
Code: Select all
usernameFont.setUseIntegerPositions(false);
?
obigu
 
Posts: 136
Joined: Fri Aug 02, 2013 4:47 pm

Re: I can't scale bitmap font!!

Postby Magnesus » Sat Aug 24, 2019 11:21 am

setUseIntegerPositions makes sure your font doesn't start at 0.5 or 0.2, always at integer coordinates (although am not sure how useful is that since the view is scaled to screen size anyway so those integers will be converted to floats again).

What is your text drawing code, are you using label? Label has a font scaling method.
Magnesus
 
Posts: 1698
Joined: Sun Sep 25, 2011 3:50 pm

Re: I can't scale bitmap font!!

Postby obigu » Wed Aug 28, 2019 12:51 am

wtf! I replied to a post by another user and now the post appears as if it was created by me...
obigu
 
Posts: 136
Joined: Fri Aug 02, 2013 4:47 pm


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest