Skip to content
Martin Fasani edited this page May 31, 2026 · 2 revisions

FastJsonDL wiki

Here we will add a short guide on useful resources to get started.

How to build the fonts

For the demo of FastJsonDL and the FastJsonRenderer that you can try in draw.fasani.de we are just doing the following:

  1. Using FastEPD fontconvert tool. Just $ make and get the executable
  2. We are leaving the generated .h fonts as a component. For example components/fonts
  3. You need to add a minimal CMakeLists.txt so it becames a compiled source: components/fonts
idf_component_register(
    INCLUDE_DIRS "."
)

You can simply copy the default fonts left in our repository and use them to get started: ubuntu in sizes 12, 20, 30, 40 are there already.

Building them using fontconvert

If you don't have freetype-dev installed you need to execute this (maybe a bit different for Mac)

apt install libfreetype-dev switch to the FastEPD fontconvert directory and:

$ make

That is it! You will see that you get a fontconvert executable:

Usage: ./fontconvert <in.ttf> <out.bbf or out.h> point_size [first_char] [last_char] (those last are optional)

Clone this wiki locally