LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Anything libgdx related goes here!

LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Guich » Fri Oct 12, 2018 8:09 am

Hi,

Yesterday i deleted my gradle folder and downloaded everything again. I then noted that the drawings of FontAwesome were broken: all that appears is a square.

How can i download a previous version of 1.9.9-SNAPSHOT? I want to try to find where/when it was broken.

Another chance: can someone test drawing a FontAwesome icon and fix the issue? :P

thanks

guich
Guich
 
Posts: 82
Joined: Sun Dec 11, 2016 9:36 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Guich » Fri Oct 12, 2018 8:35 am

i just found that the issue is in FreeTypeFontGenerator: it returns invalid glyphs in all FontAwesome characters.
Guich
 
Posts: 82
Joined: Sun Dec 11, 2016 9:36 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Guich » Fri Oct 12, 2018 9:26 am

I found the issue, which is caused by this commit:

https://github.com/libgdx/libgdx/commit ... c11ecf9667

... and added a proposed change to

https://github.com/libgdx/libgdx/pull/5398
Guich
 
Posts: 82
Joined: Sun Dec 11, 2016 9:36 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby zeecrunch » Fri Oct 12, 2018 11:18 am

I don't use FontAwesome, but as there have been a few recent changes to LibGDX's font handling, perhaps the root cause is the same as what's causing problems with Hiero:

https://www.badlogicgames.com/forum/vie ... 11&t=28398
zeecrunch
 
Posts: 28
Joined: Mon Apr 16, 2018 9:30 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby evilentity » Fri Oct 12, 2018 1:12 pm

Likely, make a good issues on github or better yet make a fix and submit a pr.
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4867
Joined: Wed Aug 24, 2011 11:37 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Guich » Mon Oct 15, 2018 8:16 pm

Hi,

Something is broken again. Is there a way to get old versions of the snapshot jar?

java.lang.NullPointerException
com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:158)
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java:200)
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java:188)
Guich
 
Posts: 82
Joined: Sun Dec 11, 2016 9:36 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Guich » Mon Nov 26, 2018 3:03 pm

This is still occuring in snapshot 10, and is easy to reproduce: just load a BitmapFont with parameter.characters set to an unhandled range and call generateFont.
Guich
 
Posts: 82
Joined: Sun Dec 11, 2016 9:36 am

Re: LibGDX broke FontAwesome text draw in 1.9.9-SNAPSHOT

Postby Christian321 » Tue Mar 19, 2019 11:06 am

I don't use FontAwesome, but as there have been a few recent changes to LibGDX's font handling, perhaps the root cause is the same as what's causing problems with Hiero mybkexperience.
Christian321
 
Posts: 1
Joined: Tue Mar 19, 2019 11:03 am


Return to Libgdx

Who is online

Users browsing this forum: No registered users and 1 guest