0

ra8875 and GFX fonts not seeming to change
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ra8875 and GFX fonts not seeming to change

by rlgjr562 on Sat Aug 24, 2019 10:12 pm

I have an Adafruit ra8875 and 800x480 tft display that I cannot figure out how to get the font to change.
These are the commands I am using to write to the display. It is writing to display but no matter what I set tft.setFont(&FreeSansBold24pt7b); to the size does not change.
searching on the internet I see others have had similar issues but they were not using Adafruit boards and found alternate solutions. Any asstance would be helpful.

At the beginning I have the following included:
Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_GFX.h>
#include <Adafruit_RA8875.h>
#include <Fonts/FreeSansBold24pt7b.h>


Code: Select all | TOGGLE FULL SIZE
  // Display the Values
  tft.textMode();                 // go to text mode
  tft.setFont(&FreeSansBold24pt7b);
  //void setCursor(uint16_t x0, uint16_t y0);
  //void setTextColor(uint16_t color);
  tft.textSetCursor(120, 190);
  tft.textTransparent(WHITE);
  //tft.textEnlarge(3);
  tft.textWrite("Temprature");
  tft.textSetCursor(200, 190);
  tft.textWrite(temp);
  tft.graphicsMode();

rlgjr562
 
Posts: 50
Joined: Sun Jan 21, 2018 5:02 pm

Please be positive and constructive with your questions and comments.