added fontHeight() function with no parameter to be consistent with the textWith function and others. no parameter means default font.

This commit is contained in:
maxpautsch 2018-06-24 10:15:43 +02:00
parent 9f222ba895
commit a2279cbdf3
2 changed files with 6 additions and 1 deletions

View File

@ -2141,6 +2141,10 @@ int16_t TFT_eSPI::fontHeight(int16_t font)
return pgm_read_byte( &fontdata[font].height ) * textsize;
}
int16_t TFT_eSPI::fontHeight()
{
return fontHeight(textfont);
}
/***************************************************************************************
** Function name: drawChar

View File

@ -631,7 +631,8 @@ class TFT_eSPI : public Print {
textWidth(const char *string),
textWidth(const String& string, int font),
textWidth(const String& string),
fontHeight(int16_t font);
fontHeight(int16_t font),
fontHeight();
void setAddrWindow(int32_t xs, int32_t ys, int32_t xe, int32_t ye);