TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
TM_FONTS_Functions

Library functions. More...

Functions

char * TM_FONTS_GetStringSize (char *str, TM_FONTS_SIZE_t *SizeStruct, TM_FontDef_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_FONTS_GetStringSize ( char *  str,
TM_FONTS_SIZE_t SizeStruct,
TM_FontDef_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