Hi @all,
can sombody tell me how to set the fontsize to BitmapFont?
thanks in advance.
You have to create your own fonts ( one for each size ) with tools like Hieiro or BitmapFont.
See this post for more informations about that : http://hub.jmonkeyengine.org/groups/gui/forum/topic/nifty-custom-font/
Otherwise, you can add an effect to your text element so that it will resize itself.
Don’t remember the name of the effect but there was a post about that not to long ago
“You have to create your own fonts ( one for each size ) with tools like Hieiro or BitmapFont.
See this post for more informations about that : http://hub.jmonkeyengine.org/groups/gui/forum/topic/nifty-custom-font/”
I found a good tutorial, but i hoped that i dont need to create a font for every fontsize that i need.
http://code.google.com/p/lonedev/wiki/BitmapFont
“Otherwise, you can add an effect to your text element so that it will resize itself.
Don’t remember the name of the effect but there was a post about that not to long ago :)”
U mean scaling the spatial?
[xml]<label id="label" text="HELLO NIFTY WORLD :)" align="left" textHAlign="left" visibleToMouse="true">
<effect>
<onActive name="textSize" startSize="2.0" endSize="2.0" />
</effect>
</label>[/xml]
You can’t really change the size of a font, but you can change the size of text: BitmapText.setSize()
You can’t really change the size of a font, but you can change the size of text: BitmapText.setSize()
Thx, Momoki_Fan.
@void256
thx.
How do i put a screen over a screen?
Or how do i put a label programmly on a screen?