Description

Values

  • font - The font family name or filename.
  • size - The font size, in points.

Getter

Retrieve the font family and size in use on a given text object.

This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function.

See also Efl.Text.Properties.font.set.

Setter

Set the font family, filename and size for a given text object.

This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file.

See also Efl.Text.Properties.font.get, Efl.Text.Properties.font_source.get.

Signature

@property font @pure_virtual {
    get {
        values {
            font: free(string, free);
            size: Efl.Font.Size;
        }
    }
    set {
        values {
            font: free(string, free);
            size: Efl.Font.Size;
        }
    }
}

C signature

void efl_text_properties_font_get(const Eo *obj, const char **font, Efl_Font_Size *size);
void efl_text_properties_font_set(Eo *obj, const char *font, Efl_Font_Size size);

Implemented by

  • Efl.Text.Properties.font