Java LibGDX BitmapFont setScale method not working -


i trying scale font receiving error "the method setscale(float, float) undefined type bitmapfont" code section getting error, in lines 2 , 4.

    font = new bitmapfont(gdx.files.internal("text.fnt"));     font.setscale (.25f, -.25f);     shadow = new bitmapfont(gdx.files.internal("shadow.fnt"));     shadow.setscale (.25f -.25f); 

i created variables here

  public static  bitmapfont font; public  static bitmapfont shadow; 

when check other examples of using setscale function, seems format used. ideas why occurring?

this method doesn't exist anymore in bitmapfont class.

an api change bitmap* classes has been introduced libgdx 1.5.6 (released in april 2015) explained in libgdx team blog post. tutorial followed outdated.

long story short, latest libgdx version, should able :

font.getdata().setscale(.25f,.25f); 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -