본문 바로가기

개발 Note/it 이야기

Text 처리시 알아두면 좋은 정보들, style, 속성, font

반응형

Text를 표시 할때 생각보다 고려해야 할 사항들이 많습니다.



[Android]

안드로이드 쪽은 이와 관련해서 살펴보려면, TextView와 TextAttribute 를 살펴보는 것이 좋습니다.

https://developer.android.com/reference/android/widget/TextView.html

https://developer.android.com/reference/android/text/FontConfig.html

https://developer.android.com/reference/java/awt/font/TextAttribute.html





[Tizen]


https://developer.tizen.org/development/guides/native-application/user-interface/efl/fonts


EFL 의 textblock에 style 지정하는 방식이 정리된 link입니다.

description
{
   text
   {
      font: "Tizen:style=Regular";
      font_size: 36;
      text_class: "label";
   }
}
description
{
   text
   {
      font: "Tizen:style=Regular";
      font_size: 36;
      text_class: "tizen";
   }
}



Table: Supported font styles

Font featureStyle attribute
font_stylenormal
oblique
italic
font_widthnormal
ultracondensed
extracondensed
condensed
semicondensed
semiexpanded
expanded
extraexpanded
ultraexpanded
font_weightnormal
thin
ultralight
light
book
medium
semibold
bold
ultrabold
black
extrablack