Languages

Menu
Sites
Language
Label font customization

Hi, 

i'm creating an application, starting from the MultiView UIBuilder template. 

I need to customize the font size and color of several labels. But there are no customization options on the properties panel for a label. Neither for the font nor for the style

How can i do it?

And another thing that i need to know, is if it could be possible for  the same lable to have the text split in two different colors. Do you think it is possible?

Thanks.

Responses

3 Replies
Ivan Gualandri

So let me see if i understood correctly, the way to customize a label in tizen is using pseudo xml code. 

i.e: if i want a label with white color, font size 50, and alignment center, the content of the label should be: 

<align=center><font_size=60><color=#FFFFFF>20</color></font_size><align>

And googling, i found the following document: https://docs.enlightenment.org/auto/evas_textblock_style_page.html#evas_textblock_style_font_size 

that list all the available styles to be used in the format above. 

I tested that code and it works in a label.

Is that the correct way of doing it?

Yasin Ali

Hi,

I think you may follow some detail design from this book to make your design accurate.

To know more about tizen native programming and UI design techniques in detail hope this

guide will give you sufficient insight.

Links:

https://developer.tizen.org/sites/default/files/documentation/guide_to_developing_tizen_native_application_en_2.pdf

https://wiki.tizen.org/Guide_to_Developing_Tizen_Native_Application

Hope it will help you.
If you find my post is helpful for you, please mark it as answer to promote this post to others.

Ivan Gualandri

So that document confirm what i stated in my previous post. That the font label customization has to be done via this pseudo-xml code. 

See page 48 of that document. 

Probably the link i posted above could be also useful, since it contains a list of possible customizations: (repost here, because in the previous post was not clickable): https://docs.enlightenment.org/auto/evas_textblock_style_page.html#evas_textblock_style_font_size