Efl.Text_Font (interface)


Font settings of the text


font (get, set)

The font family, filename and size for a given text object.
void efl_text_font_get(const Eo *obj, const char **font, Efl_Font_Size *size);
void efl_text_font_set(Eo *obj, const char *font, Efl_Font_Size size);

font_bitmap_scalable (get, set)

The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
Efl_Text_Font_Bitmap_Scalable efl_text_font_bitmap_scalable_get(const Eo *obj);
void efl_text_font_bitmap_scalable_set(Eo *obj, Efl_Text_Font_Bitmap_Scalable scalable);

font_fallbacks (get, set)

Comma-separated list of font fallbacks
const char *efl_text_font_fallbacks_get(const Eo *obj);
void efl_text_font_fallbacks_set(Eo *obj, const char *font_fallbacks);

font_lang (get, set)

Specific language of the displayed font
const char *efl_text_font_lang_get(const Eo *obj);
void efl_text_font_lang_set(Eo *obj, const char *lang);

font_slant (get, set)

Type of slant of the displayed font
Efl_Text_Font_Slant efl_text_font_slant_get(const Eo *obj);
void efl_text_font_slant_set(Eo *obj, Efl_Text_Font_Slant style);

font_source (get, set)

The font (source) file to be used on a given text object.
const char *efl_text_font_source_get(const Eo *obj);
void efl_text_font_source_set(Eo *obj, const char *font_source);

font_weight (get, set)

Type of weight of the displayed font
Efl_Text_Font_Weight efl_text_font_weight_get(const Eo *obj);
void efl_text_font_weight_set(Eo *obj, Efl_Text_Font_Weight font_weight);

font_width (get, set)

Type of width of the displayed font
Efl_Text_Font_Width efl_text_font_width_get(const Eo *obj);
void efl_text_font_width_set(Eo *obj, Efl_Text_Font_Width width);