Lines Matching refs:font_path
121 lv_font_path_t * font_path; in lv_font_manager_delete() local
122 LV_LL_READ(&manager->path_ll, font_path) { in lv_font_manager_delete()
123 if(!font_path->is_static) { in lv_font_manager_delete()
124 lv_free(font_path->name); in lv_font_manager_delete()
125 lv_free(font_path->path); in lv_font_manager_delete()
128 font_path->name = NULL; in lv_font_manager_delete()
129 font_path->path = NULL; in lv_font_manager_delete()
151 lv_font_path_t * font_path; in lv_font_manager_remove_path() local
152 LV_LL_READ(&manager->path_ll, font_path) { in lv_font_manager_remove_path()
153 if(lv_strcmp(name, font_path->name) == 0) { in lv_font_manager_remove_path()
158 if(!font_path) { in lv_font_manager_remove_path()
163 lv_ll_remove(&manager->path_ll, font_path); in lv_font_manager_remove_path()
165 if(!font_path->is_static) { in lv_font_manager_remove_path()
166 lv_free(font_path->name); in lv_font_manager_remove_path()
167 lv_free(font_path->path); in lv_font_manager_remove_path()
170 font_path->name = NULL; in lv_font_manager_remove_path()
171 font_path->path = NULL; in lv_font_manager_remove_path()
173 lv_free(font_path); in lv_font_manager_remove_path()
384 lv_font_path_t * font_path = lv_ll_ins_tail(&manager->path_ll); in lv_font_manager_add_path_core() local
385 LV_ASSERT_MALLOC(font_path); in lv_font_manager_add_path_core()
386 font_path->is_static = is_static; in lv_font_manager_add_path_core()
389 font_path->name = (char *)name; in lv_font_manager_add_path_core()
390 font_path->path = (char *)path; in lv_font_manager_add_path_core()
394 font_path->name = lv_malloc(name_len); in lv_font_manager_add_path_core()
395 LV_ASSERT_MALLOC(font_path->name); in lv_font_manager_add_path_core()
396 lv_memcpy(font_path->name, name, name_len); in lv_font_manager_add_path_core()
399 font_path->path = lv_malloc(path_len); in lv_font_manager_add_path_core()
400 LV_ASSERT_MALLOC(font_path->path); in lv_font_manager_add_path_core()
401 lv_memcpy(font_path->path, path, path_len); in lv_font_manager_add_path_core()
409 lv_font_path_t * font_path; in lv_font_manager_get_path() local
410 LV_LL_READ(&manager->path_ll, font_path) { in lv_font_manager_get_path()
411 if(lv_strcmp(name, font_path->name) == 0) { in lv_font_manager_get_path()
412 return font_path->path; in lv_font_manager_get_path()