1. Pk11

    OP Pk11 GBAtemp Regular
    Member

    Joined:
    Jun 26, 2019
    Messages:
    106
    Country:
    United States
    I doubt this'll be super interesting to like anyone but me since I doubt anyone else even uses this font format for homebrew but why not share it ;P

    Have you ever wanted to edit fonts of this one specific format some DS games use and I use in pkmn-chest? Well you're in luck ^_^

    :arrow: Simply head on over to pk11.us/nftr-editor :yay:
    :download: Want to check out the mess of JavaScript that runs this thing? Got that on GitHub!

    Preview:
    スクリーンショット 2020-03-19 13.17.02.png

    What's an NFTR file?

    NFTR (Nitro FonT Resource) is a font format used in some DS games and for the DSi's shared fonts, also I use it in pkmn-chest and since I've had to add letters for some of the languages I support there and its a pain to add them in manually, so I figured I'd make a tool to make editing them easier.

    If you want details on the format then check out the info on GBATEK is anything not on GBATEK?

    What's this useful for?

    NFTR is a pretty nice font format for using on the DS so if you want to use NFTR files for homebrew this'll probably be nice, otherwise you might be able to use it to make a font edit romhack ¯\_(ツ)_/¯

    I also plan to add font generation later so you can just generate DS fonts from existing fonts, that's not a feature yet, though.

    What can this do?

    Once you load up an nftr file you can type things in the top box on the left and it'll mirror to the bottom box rendered with the NFTR's font, complete with customizable palettes!

    You can also enter any character in the font into the text box on the right and it'll show you an enlarged version of the character that you can then draw on with the selected color from the Brush color boxes to the right of that. You can also adjust the kerning of that letter and save it back into the font and it'll update your preview.

    You can generate new graphics for your entire font with the 'Generate from font' button, this will automatically generate new graphics for every character currently in the font and automatically kern them. It will not add any new characters to the font however, so add them first as described below. This will use the current palette, but is best (currently) best left to a black on white grayscale when generating as other palettes will cause the generation to not work correctly.

    Finally, you can even add new characters to the font simply by clicking the Add characters button and entering all the characters you want to add! All duplicates and characters already in the font will be filtered out automatically so you don't even need to worry about that :ha:


    Let me know if anything's broken in here and I'll try to fix it soon, I mainly only tested in Safari so its likely other browsers may have minor problems :unsure:
     
    Last edited by Pk11, Apr 6, 2020 at 8:54 AM - Reason: Added generating graphics from a font
    MyDePain and banjo2 like this.
  2. banjo2

    banjo2 little man
    Member

    Joined:
    May 31, 2016
    Messages:
    1,128
    Country:
    United States
    A GUI? :lol:

    It sounds very nice, I may have a use for this!
     
    Pk11 likes this.
  3. Pk11

    OP Pk11 GBAtemp Regular
    Member

    Joined:
    Jun 26, 2019
    Messages:
    106
    Country:
    United States
    I've added generating from an existing font, for now its fairly limited as it will simply replace all characters currently in the NFTR with ones from the chosen font. I'll probably add the ability to automatically create new characters (ex. add Korean to a font) and to only generate specific characters later. Its still pretty nice if you want to generate a DS font from a computer one though :ha:
    スクリーンショット 2020-04-06 1.59.12.png
    It doesn't kern everything exactly right as it has to round to an integer so like with the E in this image it goes 1 pixel over and sometimes things will be 1px under, it generally looks about right though.

    Edit: Also should mention: Non-grayscale palettes will break the generation currently as I compare the opacity of the RGB character image to just the red of the palette right now. I'll probably fix this later, it works fine for grayscale though so I was lazy
     
    Last edited by Pk11, Apr 6, 2020 at 8:49 AM - Reason: Non-grayscale palette generation gets weird
    banjo2 likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - [Release], editing, Editor