gdx-smart-font
gdx-smart-font copied to clipboard
library seems outdated lead to error
When use this library, i have the 2 following error: Error 1:
error: no suitable method found for generateData(int,String
,boolean,PixmapPacker)
FreeTypeFontGenerator.FreeTypeBitmapFontData fontData = generato
r.generateData(fontSize, FreeTypeFontGenerator.DEFAULT_CHARS, false, packer);
^
method FreeTypeFontGenerator.generateData(int) is not applicable
(actual and formal argument lists differ in length)
method FreeTypeFontGenerator.generateData(FreeTypeFontParameter) is not appl
icable
(actual and formal argument lists differ in length)
method FreeTypeFontGenerator.generateData(FreeTypeFontParameter,FreeTypeBitm
apFontData) is not applicable
(actual and formal argument lists differ in length)
Error2:
no suitable constructor found for BitmapFont(FreeTy
peBitmapFontData,TextureRegion[],boolean)
BitmapFont font = new BitmapFont(fontData, texRegions, false);
^
constructor BitmapFont.BitmapFont(FileHandle,TextureRegion,boolean) is not a
pplicable
(argument mismatch; FreeTypeBitmapFontData cannot be converted to FileHand
le)
constructor BitmapFont.BitmapFont(FileHandle,FileHandle,boolean) is not appl
icable
(argument mismatch; FreeTypeBitmapFontData cannot be converted to FileHand
le)
constructor BitmapFont.BitmapFont(BitmapFontData,TextureRegion,boolean) is n
ot applicable
(argument mismatch; TextureRegion[] cannot be converted to TextureRegion)
constructor BitmapFont.BitmapFont(BitmapFontData,Array<TextureRegion>,boolea
n) is not applicable
(argument mismatch; TextureRegion[] cannot be converted to Array<TextureRe
gion>)