Font Creator for jMP

Home Forum Troubleshooting jMonkeyEngine SDK Font Creator for jMP

This topic contains 19 replies, has 9 voices, and was last updated by Avatar of Hannes kwando 9 months, 1 week ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #19362
    +8
    Avatar of Normen Hansen
    normen
    2133p

    Hey monkeys,

    to create fonts for your jME3 applications and NiftyGUI interfaces I now added a font creator to jMP. Just select a project and press “New File”, then select “GUI” -> “Font”, you will be presented with a list of all fonts installed on your computer:
    http://imgur.com/XHnGn.png

    After selecting a font you can configure the bitmap and font size to fit the font to the image:
    http://imgur.com/oWyns.png

    When pressing “Finish” a PNG and FNT file will be created in the Interface/Fonts/ assets directory, you can use the font e.g. in NiftyGUI by specifying e.g. font=”Interface/Fonts/Arial.fnt” in a nifty text tag.

    Available in the nightly update center, you have to install the plugin manually.

    Work in progress, please tell me about any problems you encounter. I also don’t know what all of the parameters in the fnt file really do, if you see errors or problems, please give me a note.

    Cheers,
    Normen

    #130682

    Hi normen,

    thx a lot for that tool. Very useful!!! Will test that later :)

    #130683
    Avatar of Paul Geraskin
    mifth
    234p

    WOW!!! Thank you!!! Awsome!

    #130684
    Avatar of iamcreasy
    iamcreasy
    71p

    will check and report. :D

    any future plan about adding features like color, gradient, outline, shadow like “Hiero”? :)

    #130685
    Avatar of Normen Hansen
    normen
    2133p

    iamcreasy said:
    any future plan about adding features like color, gradient, outline, shadow like “Hiero”? :)

    Should be easy, just look at the code, post the patch files in the contribution forum :P Color is variable through text support in jme.

    #130687
    Avatar of Normen Hansen
    normen
    2133p

    Selection of the basic font styles (plain, italic, bold) has been added (will only be available in the next nightly though).
    P.S. Creasy, I saw your post :P Its really easy jMP code, if you want to take a whack at it, theres docs on how to build the sdk and change stuff in the wiki.

    #130688
    Avatar of iamcreasy
    iamcreasy
    71p

    hehe :D

    okey, i will give it a shot.

    #130689
    Avatar of iamcreasy
    iamcreasy
    71p

    @normen what is the significance of changing the Image size?

    #130690
    Avatar of Normen Hansen
    normen
    2133p

    You have more pixels :P Basically the same as using a 1024 or a 2048 texture.. More mem usage and sharper display.

    #130691
    Avatar of
    Anonymous
    0p

    Hi, normen.
    I was create font with Cyirilic symbols, load them:


    All Cyrillic symbols was not shown.
    (Ubutu 10.10)

    #130692
    Avatar of Normen Hansen
    normen
    2133p

    Well you see what symbols it exports when you create the file, its just the 255 ascii chars for now.

    #130693
    Avatar of
    Anonymous
    0p

    Yes, i was seen them. (It was one font, when I see cyrillic simbols, other font was show square box).

    #130694
    Avatar of Yanick
    yanick
    0p

    This is a great tool!

    If I have some time, I may take a look at the source code. But in the meanwhile, here are my thoughts about features and tweaks :

    - calculate image size automatically (or replace image size by a bpp combo box) for optimal size.
    - optionally let the user enter the desired characters in a text field (use default character set, or a custom one)
    - add a charset encoding drop-down list to select the encoding to use when generating the font
    - add a final step : Set font name

    #130695

    nehon
    1242p

    @yanick said:
    - add a final step : Set font name

    You can change the name in the last panel of the wizard (top right of the form).

    #130696
    Avatar of Normen Hansen
    normen
    2133p

    1) doesn’t really make sense, there is no “ideal” image size. That parameter is left in deliberately.
    2) the character sets are defined as per the normal definitions, atm only ASCII is supported. support for UTF-8 etc. can and will be added at some point but not for random chatacter combinations
    3) see 2)
    4) see @nehon‘s answer

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.