Lines Matching refs:text
91 void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t l… in lv_txt_get_size() argument
97 if(text == NULL) return; in lv_txt_get_size()
107 while(text[line_start] != '\0') { in lv_txt_get_size()
108 …new_line_start += _lv_txt_get_next_line(&text[line_start], font, letter_space, max_width, NULL, fl… in lv_txt_get_size()
120 …lv_coord_t act_line_length = lv_txt_get_width(&text[line_start], new_line_start - line_start, font… in lv_txt_get_size()
128 if((line_start != 0) && (text[line_start - 1] == '\n' || text[line_start - 1] == '\r')) { in lv_txt_get_size()
458 char * text = 0; in _lv_txt_set_text_vfmt() local
471 text = lv_mem_alloc(len_ap + 1); in _lv_txt_set_text_vfmt()
472 LV_ASSERT_MALLOC(text); in _lv_txt_set_text_vfmt()
473 if(text == NULL) { in _lv_txt_set_text_vfmt()
476 _lv_txt_ap_proc(raw_txt, text); in _lv_txt_set_text_vfmt()
480 text = lv_mem_alloc(len + 1); in _lv_txt_set_text_vfmt()
481 LV_ASSERT_MALLOC(text); in _lv_txt_set_text_vfmt()
482 if(text == NULL) { in _lv_txt_set_text_vfmt()
485 text[len] = 0; /*Ensure NULL termination*/ in _lv_txt_set_text_vfmt()
487 lv_vsnprintf(text, len + 1, fmt, ap); in _lv_txt_set_text_vfmt()
490 return text; in _lv_txt_set_text_vfmt()