Skip to content

Commit

Permalink
Fixed BitmapFontWriter not working on Android (and possibly others) (#…
Browse files Browse the repository at this point in the history
…5333)

* - Fixed BitmapFontWriter not working on Android (and possibly others) due to
  dependency on Hiero, which only works on desktop.

* readded the @link but without the import
  • Loading branch information
wheelergames authored and Tom-Ski committed Aug 6, 2018
1 parent 6f1daeb commit b55146d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
import com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData;
import com.badlogic.gdx.graphics.g2d.BitmapFont.Glyph;
import com.badlogic.gdx.graphics.g2d.PixmapPacker.Page;
import com.badlogic.gdx.tools.hiero.Hiero;
import com.badlogic.gdx.utils.Array;

/** A utility to output BitmapFontData to a FNT file. This can be useful for caching the result from TrueTypeFont, for faster load
* times.
* <p>
* The font file format is from the AngelCodeFont BMFont tool.
* <p>
* Output is nearly identical to the FreeType settting in the {@link Hiero} tool. BitmapFontWriter gives more flexibility, eg
* Output is nearly identical to the FreeType settting in the Hiero tool {@Link com.badlogic.gdx.tools.hiero.Hiero}. BitmapFontWriter gives more flexibility, eg
* borders and shadows can be used. Hiero is able to avoid outputting the same glyph image more than once if multiple character
* codes have the exact same glyph.
* @author mattdesl AKA davedes */
Expand Down

1 comment on commit b55146d

@fmmarzoa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BRILLIANT!

I need this. I have something that depends on java.awt* and I'm pretty sure it was that Hiero dependency because I'm using BitmapFontWriter in my android/ios app. With android it seems the solution was to add --dontwarn java.awt.* and a bunch of other similar ones, and the app does not seem to crash (probably because that import is used only for that documentation link), but MOE's dex2oat won't build at all with these dependencies.

I'm using 1.9.9-snapshot already but this change seems not to have been included there, how could I update my gradle build to use this file instead of the old one with the Hiero import?

Please sign in to comment.