forked from Bodmer/TFT_eSPI
Remove left over function
This commit is contained in:
24
TFT_eSPI.cpp
24
TFT_eSPI.cpp
@@ -4397,32 +4397,8 @@ void TFT_eSPI::setFreeFont(const GFXfont *f)
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
|
||||
/***************************************************************************************
|
||||
** Function name: setFreeFont
|
||||
** Descriptions: Sets the GFX free font to use
|
||||
***************************************************************************************/
|
||||
|
||||
// Alternative to setTextFont() so we don't need two different named functions
|
||||
void TFT_eSPI::setFreeFont(uint8_t font)
|
||||
{
|
||||
setTextFont(font);
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************************
|
||||
** Function name: setTextFont
|
||||
** Description: Set the font for the print stream
|
||||
***************************************************************************************/
|
||||
void TFT_eSPI::setTextFont(uint8_t f)
|
||||
{
|
||||
textfont = (f > 0) ? f : 1; // Don't allow font 0
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/***************************************************************************************
|
||||
** Function name: getSPIinstance
|
||||
** Description: Get the instance of the SPI class
|
||||
|
@@ -566,9 +566,6 @@ class TFT_eSPI {
|
||||
|
||||
#ifdef LOAD_GFXFF
|
||||
void setFreeFont(const GFXfont *f = NULL); // Select the GFX Free Font
|
||||
#else
|
||||
void setFreeFont(uint8_t font), // Not used, historical fix to prevent an error
|
||||
setTextFont(uint8_t font); // Set the font number to use in future
|
||||
#endif
|
||||
|
||||
int16_t textWidth(std::string_view string, uint8_t font); // Returns pixel width of string in specified font
|
||||
|
Reference in New Issue
Block a user