.pio/libdeps/m5stack-core2/M5Core2/src/utility/Sprite.cpp
void TFT_eSprite::printToSprite(String string)
{
  if(!this->fontLoaded) return;
  uint16_t len = string.length();
  char cbuffer[len + 1];              // Add 1 for the null
  string.toCharArray(cbuffer, len + 1); // Add 1 for the null, otherwise characters get dropped
  printToSprite(cbuffer, len);
  //printToSprite((char*)string.c_str(), string.length());
}
/***************************************************************************************
** Function name:           printToSprite
** Description:             Write a string to the sprite cursor position
*************************************************************************************x*/
Function name:           printToSprite
Description:             Write a string to the sprite cursor position
x
Function name : printToSprite Description : Write a string to the sprite cursor position x
void TFT_eSprite::printToSprite(String string)
{
  if(!this->fontLoaded) return;
  uint16_t len = string.length();
  char cbuffer[len + 1];              
  string.toCharArray(cbuffer, len + 1); , otherwise characters get dropped
  printToSprite(cbuffer, len);
}
void TFT_eSprite :: printToSprite ( String string ) { if ( ! this -> fontLoaded ) return ; uint16_t len = string . length ( ) ; char cbuffer [ len + 1 ] ; string . toCharArray ( cbuffer , len + 1 ) ; printToSprite ( cbuffer , len ) ; }
Function name:           printToSprite
Description:             Write a string to the sprite cursor position
x
Function name : printToSprite Description : Write a string to the sprite cursor position x
// Add 1 for the null // Add 1 for the null, otherwise characters get dropped //printToSprite((char*)string.c_str(), string.length());