Im sure it could be made to work with a seperate assets folder (i used to try to do that) but as you are using gradle your life will be easier if you move to a normal gradle layout and move those fonts to src/main/resources/font
Admittedly I don’t know much about fonts, but its interesting that the exception is about the 1_0.tga file while the 1.fnt file is being loaded. Does the 1.fnt file have relative references to that 1_0.tga file?
P.s. is that the whole error, “An exception has occurred while loading asset” or is there more to it? Like a stack trace or a caused by
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
com.jme3.asset.AssetLoadException: An exception has occurred while loading asset: Fonts/1_0.tga (Flipped)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:274)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:388)
at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:407)
at com.jme3.font.plugins.BitmapFontLoader.load(BitmapFontLoader.java:102)
at com.jme3.font.plugins.BitmapFontLoader.load(BitmapFontLoader.java:170)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:272)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:388)
at com.jme3.asset.DesktopAssetManager.loadFont(DesktopAssetManager.java:434)
at wildmagic.Battle.initialize(Battle.java:100)
at com.jme3.app.state.BaseAppState.initialize(BaseAppState.java:129)
at com.jme3.app.state.AppStateManager.initializePending(AppStateManager.java:332)
at com.jme3.app.state.AppStateManager.update(AppStateManager.java:362)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:258)
at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:580)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:669)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Monochrome and RLE colormapped images are not supported
at com.jme3.texture.plugins.TGALoader.load(TGALoader.java:462)
at com.jme3.texture.plugins.TGALoader.load(TGALoader.java:84)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:272)
… 15 more
A note for the future: if you’d included the whole stack trace in your first post you would have gotten the right answer in the very first response.
Exceptions without a stack trace are nearly useless. It leaves out 99% of the useful information. It’s equivalent to just saying “my program doesn’t work”.
Also for future reference. The link to the docs and the instructions are correct. But they are not applied by the OP. The font creator doesn’t create TGAs, instead PNGs and as I tested it works out of the box as per the instructions linked (Font Creator :: jMonkeyEngine Docs).