Now it is working
!
i used Truetype2GFX to convert my .ttf into a GFX font, then included the file it generated in my src folder. Then with this simple code works:
#include <Arduino.h>
#include <TFT_eSPI.h>
#include "Rally_Italic12pt7b.h"
#define GFXFF 1
#define CF_SM50 &Rally_Italic12pt7b
TFT_eSPI tft = TFT_eSPI();
void setup() {
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_RED);
tft.setTextDatum(MC_DATUM);
tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.setFreeFont(CF_SM50);
tft.drawString("12:55", 160, 100, GFXFF);
}
void loop() {
delay(1000);
}
Thanks sivar!