const uint8_t* data = Ubuntu_data; const size_t data_size = sizeof(Ubuntu_data); // initialize the const buffer filesystem (done once) lv_fs_cbfs_init(); char path[256]; // create a path to the pointer lv_fs_cbfs_create(path,sizeof(path),data,data_size); // create a font with a line height of 40 from the path // path can be a file, a cbfs pointer, etc. lv_font_t* font = lv_tiny_ttf_create(path,40,NULL); // create simple label lv_obj_t *label = lv_label_create( lv_scr_act() ); lv_style_selector_t selector=0; lv_obj_set_style_text_font(label,font,selector); lv_label_set_text( label, "honey\nthe\nmonster"); lv_obj_align( label, LV_ALIGN_CENTER, 0, 0 );