1,8" TFT - Text zentrieren

Habs rausgefunden. Bei der Standardfont (der Adafruit Library) scheint es sehr einfach zu sein: Font Size * 6

Im ganzen sieht es dann so aus:

void refresh_display_datetime(DateTime now, float t, float h) {
  //String Month[] = {"", "Januar", "Februar", "Maerz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"};
  String Month[] = {"", "Januar", "Februar", "Maerz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "Juli", "Dezember"};
  
  String ShowText = "";
  
  //tft.fillScreen(ST7735_BLACK);
  
  ShowText = String(now.day());
  tft.setCursor( ( ( 160 - (ShowText.length() * 42)) / 2 ) , 10);
  tft.setTextSize(7);
  tft.setTextColor(ST7735_WHITE, ST7735_BLACK);
  tft.setTextWrap(false);
  tft.print(ShowText);
  
  ShowText = String(Month[int(now.month())]);
  tft.setCursor( ( ( 160 - (ShowText.length() * 18)) / 2 ) , 65);
  tft.setTextSize(3);
  tft.setTextColor(ST7735_WHITE, ST7735_BLACK);
  tft.setTextWrap(false);
  tft.print(ShowText);
  
  ShowText = String(now.year()); 
  tft.setTextSize(2);
  tft.setCursor( ( ( 160 - (ShowText.length() * 12)) / 2 ) , 85);
  tft.setTextColor(ST7735_WHITE, ST7735_BLACK);
  tft.setTextWrap(false);
  tft.print(ShowText);
  
  ShowText = "Temperatur: " + String(t) + " C"; 
  tft.setCursor( ( ( 160 - (ShowText.length() * 6)) / 2 ) , 110);
  tft.setTextSize(1);
  tft.setTextColor(ST7735_WHITE, ST7735_BLACK);
  tft.setTextWrap(false);
  tft.print(ShowText);
  
  ShowText = "Luftfeuchte: " + String(h); 
  tft.setCursor(( ( 160 - (ShowText.length() * 6)) / 2 ), 120);
  tft.setTextSize(1);
  tft.setTextColor(ST7735_WHITE, ST7735_BLACK);
  tft.setTextWrap(false);
  tft.print(ShowText);  
  
}