Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library seems outdated lead to error #1

Open
bangive opened this issue Jan 4, 2016 · 0 comments
Open

library seems outdated lead to error #1

bangive opened this issue Jan 4, 2016 · 0 comments

Comments

@bangive
Copy link

bangive commented Jan 4, 2016

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>)
@bangive bangive changed the title Error library seems outdated lead to error Jan 4, 2016
Timbals pushed a commit to Timbals/gdx-smart-font that referenced this issue Jan 15, 2016
fixed errors that were caused by a new libgdx version (fixing jrenner#1)
added support for different font sizes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant