is a tool that makes bitmap fonts for using in jme, lemur and nifty GUi to
This library only supports languages such as persian and right to left
- 1- make a font in cmd using executable bitMapFontCreator.jar file:
java -jar .\bitMapFontCreator.jar
- 2-move the font to asset directory and add bitMapFontCreator.jar as a lib to the jme project then use it like this:
String txt = perisantext.p("سلام دنیا"); BitmapFont font_m = assetManager.loadFont("Interface/Fonts/medium.fnt");/in jme bitmap text/ BitmapText bmt = new BitmapText(font_m); bmt.setText(txt);
/in lemur gui/ Label lb = new Label(txt); lb.setFont(font_m);
/in nifty gui/ //just pass the txt as text and font_m as the font and it works correctly
ابزاری برای تبدیل فونت های پارسی ttf به فرمت بیت مپ و برای نمایش متن راست به چپ، جهت استفاده در JmonkeyEngine.