Nifty example not working

Hi,

I am trying to figure out how to use nifty.

So this is the example I am tryting below.



[xml]

<?xml version=“1.0” encoding=“UTF-8”?>

<nifty>

<screen id=“start” controller=“NiftyCont”>

<layer id=“layer” backgroundColor="#003f" childLayout=“center”>

<panel height=“25%” width=“35%” align=“center” valign=“center” backgroundColor="#f60f"

childLayout=“center” visibleToMouse=“true”>

<text font=“verdana-24-shadow.fnt” text=“Hello World!” align=“center” valign=“center” />

</panel>

</layer>

</screen>

</nifty>

[/xml]

[java]

NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(

assetManager, inputManager, audioRenderer, guiViewPort);

nifty = niftyDisplay.getNifty();

nifty.fromXml(“Interfaces/helloworld.xml”, “start”);



guiViewPort.addProcessor(niftyDisplay);

[/java]

The problem is that it doesn’t work.

When I remove the attribute font from text tag, then it works and I see all exept any text.

Do you know what’s wrong, where does that font come from and why it breaks the view?

Where you got that example from? The fonts are in templates or in your assets folder. Use the nifty tutorials from the wiki, these should work with the default jME3 styles etc.

Got that example from Nifty hello world tutorial



I see that JME example uses [xml]<text font=“verdana-24-shadow.fnt” text=“Hello World!” align=“center” valign=“center” />[/xml] also.

Use aurulent-sans-17.fnt it should be in the black default style.