Font Creator for jMP

Home Forum Troubleshooting jMonkeyEngine SDK Font Creator for jMP

This topic contains 27 replies, has 12 voices, and was last updated by  Oskar 2 months, 2 weeks ago.

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • #19362
    +11

    Normen Hansen
    2792p
    Keymaster

    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

    Dodikles
    67p
    Participant

    Hi normen,

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

    #130683

    mifth
    359p
    Participant

    WOW!!! Thank you!!! Awsome!

    #130684

    iamcreasy
    87p
    Participant

    will check and report. :D

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

    #130685

    Normen Hansen
    2792p
    Keymaster

    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

    Normen Hansen
    2792p
    Keymaster

    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

    iamcreasy
    87p
    Participant

    hehe :D

    okey, i will give it a shot.

    #130689

    iamcreasy
    87p
    Participant

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

    #130690

    Normen Hansen
    2792p
    Keymaster

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

    #130691

    Anonymous

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


    All Cyrillic symbols was not shown.
    (Ubutu 10.10)

    #130692

    Normen Hansen
    2792p
    Keymaster

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

    #130693

    Anonymous

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

    #130694

    yanick
    0p
    Participant

    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
    1871p
    Keymaster

    @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

    Normen Hansen
    2792p
    Keymaster

    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 28 total)

You must be logged in to reply to this topic.