You are reading a single comment by @RaoulDuke and its replies. Click here to read the full conversation.
  • Here you are. This is far from a finished program, just a quick hack to generate some images from font data. Use it like this:

    1. Use the Espruino font converter to convert your font. You will need three pieces of data from the output window.
    2. Copy the encoded string after g.setFontCustom(atob(" into the script after "fontEncoded". This is where the actual characters are encoded.
    3. Change the value of fontsize in the script to the size of your converted font.
    4. Copy the second (shorter) encoded string into the script after "width". The width of each character is encoded here.
    5. Run the script. It should output a list of image definitions that the Graphics library can use

    Edit: The forum code viewer does not seem to like python code. I uploaded the script instead...


    1 Attachment

About

Avatar for RaoulDuke @RaoulDuke started