/* Get the number of characters (and NOT bytes) in a string. Decode it with UTF-8 if enabled. E.g.: "ÁBC" is 3 characters (but 4 bytes)  */
static uint32_t lv_txt_utf8_get_length(const char *txt)
/* Get the number of characters (and NOT bytes) in a string. Decode it with UTF-8 if enabled. E.g.: "ÁBC" is 3 characters (but 4 bytes)  */
static uint32_t lv_txt_utf8_get_length(const char *txt)
{
    uint32_t len = 0;
    uint32_t i   = 0;
    while(txt[i] != '\0') {
        lv_txt_encoded_next(txt, &i);
        len++;
    }
    return len;
}