MCUFRIEND_kbv GLUE class font change

How to change font and font size in this code?

#include <UTFTGLUE.h>              //use GLUE class and constructor
UTFTGLUE myGLCD(0,A2,A1,A3,A4,A0); //all dummy args

void setup() {
  myGLCD.InitLCD();
  myGLCD.setFont(SmallFont);

   int buf[478];
  int x, x2;
  int y, y2;
  int r;

// Clear the screen and draw the frame

  myGLCD.clrScr();

  myGLCD.setColor(255, 0, 0);
  myGLCD.fillRect(0, 250, 479, 270);
  myGLCD.setColor(64, 64, 64);
  myGLCD.fillRect(0, 280, 479, 319);
  myGLCD.setColor(255, 255, 255);
  myGLCD.setBackColor(255, 0, 0);
  myGLCD.print("WELCOME!", CENTER, 5);
  myGLCD.setBackColor(64, 64, 64);
  myGLCD.setColor(255,255,0);
  myGLCD.print("abc", CENTER, 307);
}


void loop() {
}

Why would anyone use UTFTGLUE in a new program?
It is useful for porting a working legacy UTFT program

Life is much easier with native GFX methods. Look at the Font_simple.ino example.

If you have a problem with a legacy UTFT program, attach it. ZIP up the project if it has multiple files.

David.

can you give me an example code with native GFX methods

I provide library examples. Just say which example you do not understand.

Most code that is posted on this Forum use Adafruit_GFX graphics.
The remaining code uses UTFT style graphics.

I suggest that you always use GFX methods in a new program.

David.