Lua Font Builder

  • FeynmanLogomaker
    5th Oct 2013 Member 1 Permalink

    Lua Font Builder

     

    Font texter for this.

     

    Get the code here, it should be able to run without any libraries now.

     

    USAGE:

    Start a new font:

    makeFont(Font width (number), Font height (number), Font name (string))

    -Makes a new file usable by the texter.

    -Sets up the font data used throughout the program.

     

    Make all the letters in a font:

    autoGen()

     

    GUI Usage:

    Click a pixel to toggle it.

    Click outside of the GUI to move to the next character.

    'a'

    At the top-right corner of the GUI, there is:

    a) A display telling you which character you are on, and
    b) A pixel preview of your letter at a 1:1 scale.

    The pixel preview

    To exit the GUI before you have completed your font:

    Type 'done()' into the console. It will exit the GUI, finish your font, and write it to a file.

     

    Version:

     

    1.0: Made first version

    2.0: Fixed bug preventing close of GUI, even after you finished the font

    2.3: Fixed minor bug causing it to treat the 3rd-to-last row of the pixel data as the end line, thus omitting a

          comma there instead of at the end

    Edited 2 times by FeynmanLogomaker. Last: 5th Oct 2013
  • mniip
    6th Oct 2013 Developer 0 Permalink
    lines 46-71: do you know about concatenation
    line 86: never reached
    line 89: man what, `if` already checks for true-ness
    line 158,172,...: do you realize your functions are global

    and in total, your system is weird, it's not an editor, just a creator, you cannot go back and edit a character, you cannot skip a character, you cannot add a character not in the list
    Edited 2 times by mniip. Last: 6th Oct 2013
  • boxmein
    6th Oct 2013 Former Staff 0 Permalink
    Check out https://github.com/boxmein/tpt-font-editor for TPT's font creator that was originally in FacialTurd/The-Powder-Toy/tree/legacy. Check out how that one works for some features you might want to add.
    Edited once by boxmein. Last: 6th Oct 2013