Languages

Menu
Sites
Language
Fonts in Tizen Native App

Hello There,

lastly one of my question was resolved for the font purpose but there by we faced a problem for using that method ,

 

I need to add a multiline text , to which i can give my personal font styles, colors, alignment, etc .

if  someone know about this problem please help, 

I had used this method

( refering this link : http://developer.samsung.com/forum/thread/creating-font-resources-for-gear/201/301217?boardName=SDK&startId=00cVe~&startPage=30&curPage=32 ) ,

that might be used for a short and fixed texts

Evas_Object *Title=evas_object_text_add(ad->layout);
evas_object_text_text_set(Title,argv[0]);
evas_object_color_set(Title, 255, 255, 255, 255);
evas_object_text_font_set(Title, FONT"RALEWAY-MEDIUM.TTF", ELM_SCALE_SIZE(16));
elm_object_part_content_set(ad->layout, "Title", Title);

Please Help , if someone had solution

Responses

1 Replies
Armaan-Ul- Islam

So the scenario is, you are able to add font styles, colors, alignment, etc. And you just need to make it Multi Line, Is it?

If that's the case, As far as I know you can try <br> tag inside string to make it multiline.

 

elm_object_text_set(Title,"<align=center>Application Title<br>Second Title</align>");