andryblack / fontbuilder

Bitmap font generator
MIT License
451 stars 99 forks source link

Does this work with libgdx ? #18

Open xeoshow opened 9 years ago

xeoshow commented 9 years ago

Hi,

Just would like to know if this works with libgdx ?

Thanks.

Wulf commented 8 years ago

Sure does, with a slight touch :)

Add padding=0,0,0,0 in the first line of the *.fnt file. I put it before the spacing, only because that's how BMFont does it. For example: info face="Sui Generis" size=10 bold=0 italic=0 smooth=1 padding=0,0,0,0 spacing=0,0

Use the default output settings: libgdxfont

Wulf commented 6 years ago

@Dillybob1992 I think you downloaded this version back from 2012 (I guess it didn't have a BMFont export factory defined).

Try cloning this repo and make it from source! I know there aren't any instructions in the README, but let me know if this works for you (you'll need qt and some c++ build tools installed):

$ git clone ...
$ cd fontbuilder
$ qmake
$ make

Source: NicoHood from the AUR.

You could potentially try looking into other methods listed in the LibGDX wiki.