i am creating my tizen native app, and i want to change the fonts in my app using .ttf file of fonts
here is muy Code :
i had defined the path of my font file as below
#define LATO_REGULAR "/opt/usr/apps/org.example.taskist/res/Font/Lato-Regular.ttf"
then i had Appended a font path to the list of font paths used by the application :
evas_font_path_global_append(LATO_REGULAR);
now time to use the fonts in the texts of th label :
i created the Label by below code :
ad->label= elm_label_add(ad->Box); elm_object_text_set(ad->label,"<font=Lato:style=Regular font_size=40>Title</font>"); my_box_pack(ad->Box,ad->label, 1.0, 0.0, -1.0, 0.5);
this code is showing the simple label "Title" (without the Lato-Regular fonts) .
and i need a label only istead of
Evas_Object *text= evas_object_text_add(e); evas_object_text_font_set(text,LATO_REGULAR, 40);
Please Help , Thanks