Pico_graphics c++

Hi i am new in pimoroni . If there any possibilty to generate a font from .ttf to work with this code for example : cheers

include <string.h>
#include <math.h>
#include <vector>
#include <cstdlib>

#include "pico_explorer.hpp"
#include "drivers/st7789/st7789.hpp"
#include "libraries/pico_graphics/pico_graphics.hpp"

#include "font6_data.hpp"
#include "font8_data.hpp"
#include "msa301.hpp"

using namespace pimoroni;

extern unsigned char _binary_fox_tga_start[];

ST7789 st7789(PicoExplorer::WIDTH, PicoExplorer::HEIGHT, ROTATE_0, false, get_spi_pins(BG_SPI_FRONT));
PicoGraphics_PenRGB332 graphics(st7789.width, st7789.height, nullptr);

MSA301 msa301;

int main() {

  Pen BG = graphics.create_pen(120, 40, 60);
  Pen WHITE = graphics.create_pen(255, 255, 255);

  uint32_t i = 0;
  while(true) {

    graphics.text("6x6: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 10), 220);
    graphics.text("0123456789 !$%^&*()", Point(10, 70), 220);
    graphics.text("6x8: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 120), 220);
    graphics.text("0123456789 !$%^&*()", Point(10, 180), 220);



  return 0;

You can find a ttf to bitmap c-code converter here: GitHub - adafruit/Adafruit-GFX-Library: Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from

Not sure if pico-graphics uses the same format, but I could image that they do.

I have created a version of it here: GitHub - bablokb/pic-st7735: ST7735 TFT-Library for PIC-Microcontrollers that allows you to only include the characters you are actually using. This really saves a lot of ram if you e.g. only want to display numbers.