RS8875 Default Font?

I'm using the 7" RA8875 (SPI) display with a Teensy 4.1. Most of the display work is done using the Adafruit GFX library fonts. However, on project boot, a non-GFX font is used which is smaller than the smallest Adafruit (9pt) fonts. I believe this font is the default font shipped with the display, but I'm not sure. Does anyone know how to use the tft.setFont(&WhateverFont) call for the embedded font??

I'm using Win 10 Home with 32GB, IDE 2.3.4, and the Teensy 4.1 microprocessor and TeensyDuino 1.59.

The 'classic' GFX built in font, which is 6x8, can be selected with tft.setFont(); or tft.setFont(NULL);.

Tried both forms and the text just doesn't appear. My guess is because I don't have a #include for the font. Is there a font name to tie to the "built-in" font?

No include needed for the default GFX font. And a NULL pointer selects it.

Did you set the text colour?

Which library are you using for the display? There are multiple libraries that make use of Adafruit_GFX.

I set the color after the null pointer call. I changed the order so the text color call is made first and that appears to work. It's late here, so I'll check it out more completely tomorrow.

Thanks for your help!!

It's the RA8875 library by Sumotoy.

I think I found the solution. Simply use the call:

tft.setFontDefault();

Thanks to those who provided answers...they helped discover the solution!

Edit: you can change the size by following the above with:

tft.setFontScale((enum RA8875tsize) sizeWanted);

where sizeWanted determines the font size.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.