- Jun 6, 2020
- 11,559
- 4,422
Hi
I have used the ILI9488 library from Candide and it works fine with a 3.5in tft ILI9488 controller. The problem is the standard font is very blocky when using the larger text sizes.
How do I use other fonts with this Library?
I see that there is a mention of setFont in the ILI9488.CPP file but I think it is just a comment.
// void setFont(GFXfont * f = NULL)
Can anyone help?
I have used this code from Erel with the ILI9341 controller and it works fine but it will not compile with the ILI9488 library.
#if C
#include "FreeSans9pt7b.h"
#include "FreeSans18pt7b.h"
void SetFontL(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont(&FreeSans18pt7b);
}
void SetFont(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont(&FreeSans9pt7b);
}
void SetFontD(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont();
}
#End If
I have used the ILI9488 library from Candide and it works fine with a 3.5in tft ILI9488 controller. The problem is the standard font is very blocky when using the larger text sizes.
How do I use other fonts with this Library?
I see that there is a mention of setFont in the ILI9488.CPP file but I think it is just a comment.
// void setFont(GFXfont * f = NULL)
Can anyone help?
I have used this code from Erel with the ILI9341 controller and it works fine but it will not compile with the ILI9488 library.
#if C
#include "FreeSans9pt7b.h"
#include "FreeSans18pt7b.h"
void SetFontL(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont(&FreeSans18pt7b);
}
void SetFont(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont(&FreeSans9pt7b);
}
void SetFontD(B4R::Object* o) {
b4r_main::_tft->GFX->gfx->setFont();
}
#End If
برای دیدن لینک ها باید ثبت نام کنید