MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > h) String Functions > leStringUtils_GetCharRectCStr Function
MPLAB® Harmony Graphics Suite
leStringUtils_GetCharRectCStr Function

Gets a glyph bounding rectangle for a C-style string

C
LIB_EXPORT leResult leStringUtils_GetCharRectCStr(
    const char* str, 
    const leFont* font, 
    uint32_t charIdx, 
    leRect* rect
);
Parameters
Parameters 
Description 
const char* str 
the source C string 
const leFont* font 
the font to reference 
uint32_t charIdx 
the char index to reference 
leRect* rect 
will contain the glyph bounding rectangle 
Returns

leResult - the result of the operation

MPLAB® Harmony Graphics Suite