** Function name: drawString (with or without user defined font) ** Description : draw string with padding if it is defined ***************************************************************************************/ Without font number, uses font set by setTextFont()
| 5532 | ***************************************************************************************/ |
| 5533 | // Without font number, uses font set by setTextFont() |
| 5534 | int16_t TFT_eSPI::drawString(const String& string, int32_t poX, int32_t poY) |
| 5535 | { |
| 5536 | int16_t len = string.length() + 2; |
| 5537 | char buffer[len]; |
| 5538 | string.toCharArray(buffer, len); |
| 5539 | return drawString(buffer, poX, poY, textfont); |
| 5540 | } |
| 5541 | // With font number |
| 5542 | int16_t TFT_eSPI::drawString(const String& string, int32_t poX, int32_t poY, uint8_t font) |
| 5543 | { |