I can't seem to get the correct font used on a button. This is from David_Prentice's multiple button example.
tft.begin(tft.readID());
tft.setRotation(1); //LANDSCAPE
//pinMode(LED, OUTPUT);
pinMode(redled, OUTPUT);
pinMode(greenled, OUTPUT);
pinMode(blueled, OUTPUT);
circle_btn.initButton(&tft, 293, 20, 56, 40, TFT_BLACK, TFT_WHITE, TFT_BLACK, "Circle", 1);
triangle_btn.initButton(&tft, 293, 64, 56, 40, TFT_BLACK, TFT_WHITE, TFT_BLACK, "Triangle", 1);
square_btn.initButton(&tft, 293, 108, 56, 40, TFT_BLACK, TFT_WHITE, TFT_BLACK, "Square", 1);
line_btn.initButton(&tft, 293, 156, 56, 40, TFT_BLACK, TFT_WHITE, TFT_BLACK, "Lines", 1);
RGB_btn.initButton(&tft, 340, 270, 120, 40, TFT_BLACK, TFT_RED, TFT_BLACK, "RGB", 2); // background color,text color, text, text size.
red_btn.initButton(&tft, 20, 220, 40, 40, TFT_WHITE, TFT_RED, TFT_BLACK, "RED", 2);
green_btn.initButton(&tft, 64, 220, 40, 40, TFT_WHITE, TFT_GREEN, TFT_BLACK, "GRN", 2);
blue_btn.initButton(&tft, 108, 220, 40, 40, TFT_WHITE, TFT_BLUE, TFT_BLACK, "BLU", 2);
yellow_btn.initButton(&tft, 152, 220, 40, 40, TFT_WHITE, TFT_YELLOW, TFT_BLACK, "YEL", 2);
purple_btn.initButton(&tft, 196, 220, 40, 40, TFT_WHITE, TFT_MAGENTA, TFT_BLACK, "PRP", 2);
aqua_btn.initButton(&tft, 240, 220, 40, 40, TFT_WHITE, TFT_CYAN, TFT_BLACK, "AQU", 2);
back_btn.initButton(&tft, 293, 220, 56, 40, TFT_BLACK, TFT_WHITE, TFT_BLACK, "BACK", 2);
tft.setFont(&Dialog_plain_20);
Shape_btn.initButton(&tft, 340, 50, 140, 50, TFT_RED, TFT_BLUE, TFT_GREEN, "Shape", 2); // position (L&T),button Width,button Height,border color,
Temp24Low_btn.initButton(&tft, 355, 200, 150, 50, TFT_BLACK, TFT_BLUE, TFT_GREEN, "24H Low", 2);
tft.setFont();
tft.fillScreen(TFT_BLACK);
Shape_btn.drawButton(false); // these buttons appear on the Home Screen (Screen0[])
RGB_btn.drawButton(false);
Temp24Low_btn.drawButton(false);
tft.setTextSize(1);
tft.setTextColor(BRTGREEN);
tft.setFont(&Dialog_plain_20);
tft.setCursor(130, 180);
tft.print("24H Low");
tft.setFont(); // returns to default font */
for the Temp24Low_btn, it insists on using the default font. yet for the free standing text below, it accepts the &Dialog_plain_20 font just fine.
what the heck ?