TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library functions. More...

Functions

char * TM_FONT_GetStringSize (char *str, TM_FONT_SIZE_t *SizeStruct, TM_FONT_t *Font)
 Calculates string length and height in units of pixels depending on string and font used. More...
 

Detailed Description

Library functions.

Function Documentation

char* TM_FONT_GetStringSize ( char *  str,
TM_FONT_SIZE_t SizeStruct,
TM_FONT_t Font 
)

Calculates string length and height in units of pixels depending on string and font used.

Parameters
*strString to be checked for length and height
*SizeStructPointer to empty TM_FONTS_SIZE_t structure where informations will be saved
*FontPointer to TM_FontDef_t font used for calculations
Return values
Pointerto string used for length and height