// Text rendering - value returned is the pixel width of the rendered text
int16_tdrawNumber(longintNumber,int32_tx,int32_ty,uint8_tfont),// Draw integer using specified font number
drawNumber(longintNumber,int32_tx,int32_ty),// Draw integer using current font
// Decimal is the number of decimal places to render
// Use with setTextDatum() to position values on TFT, and setTextPadding() to blank old displayed values
drawFloat(floatfloatNumber,uint8_tdecimal,int32_tx,int32_ty,uint8_tfont),// Draw float using specified font number
drawFloat(floatfloatNumber,uint8_tdecimal,int32_tx,int32_ty),// Draw float using current font
// Handle char arrays
// Use with setTextDatum() to position string on TFT, and setTextPadding() to blank old displayed strings
drawString(constchar*string,int32_tx,int32_ty,uint8_tfont),// Draw string using specified font number
drawString(constchar*string,int32_tx,int32_ty),// Draw string using current font
drawString(constString&string,int32_tx,int32_ty,uint8_tfont),// Draw string using specified font number
drawString(constString&string,int32_tx,int32_ty),// Draw string using current font
drawCentreString(constchar*string,int32_tx,int32_ty,uint8_tfont),// Deprecated, use setTextDatum() and drawString()
drawRightString(constchar*string,int32_tx,int32_ty,uint8_tfont),// Deprecated, use setTextDatum() and drawString()
drawCentreString(constString&string,int32_tx,int32_ty,uint8_tfont),// Deprecated, use setTextDatum() and drawString()
drawRightString(constString&string,int32_tx,int32_ty,uint8_tfont);// Deprecated, use setTextDatum() and drawString()
// Text rendering and font handling support funtions
voidsetCursor(int16_tx,int16_ty),// Set cursor for tft.print()
setCursor(int16_tx,int16_ty,uint8_tfont);// Set cursor and font number for tft.print()
int16_tgetCursorX(void),// Read current cursor x position (moves with tft.print())
getCursorY(void);// Read current cursor y position
voidsetTextColor(uint16_tcolor),// Set character (glyph) color only (background not over-written)
setTextColor(uint16_tfgcolor,uint16_tbgcolor,boolbgfill=false),// Set character (glyph) foreground and background colour, optional background fill for smooth fonts
setTextSize(uint8_tsize);// Set character size multiplier (this increases pixel size)
voidsetTextWrap(boolwrapX,boolwrapY=false);// Turn on/off wrapping of text in TFT width and/or height
voidsetTextDatum(uint8_tdatum);// Set text datum position (default is top left), see Section 6 above
uint8_tgetTextDatum(void);
voidsetTextPadding(uint16_tx_width);// Set text padding (background blanking/over-write) width in pixels
uint16_tgetTextPadding(void);// Get text padding
#ifdef LOAD_GFXFF
voidsetFreeFont(constGFXfont*f=NULL),// Select the GFX Free Font
setTextFont(uint8_tfont);// Set the font number to use in future
#else
voidsetFreeFont(uint8_tfont),// Not used, historical fix to prevent an error
setTextFont(uint8_tfont);// Set the font number to use in future
#endif
int16_ttextWidth(constchar*string,uint8_tfont),// Returns pixel width of string in specified font
textWidth(constchar*string),// Returns pixel width of string in current font
textWidth(constString&string,uint8_tfont),// As above for String types
textWidth(constString&string),
fontHeight(int16_tfont),// Returns pixel height of string in specified font
fontHeight(void);// Returns pixel width of string in current font
// Used by library and Smooth font class to extract Unicode point codes from a UTF8 encoded string