summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl/interfaces/efl_text_font.eo')
-rw-r--r--src/lib/efl/interfaces/efl_text_font.eo23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
index ccd4e33b35..f7a6e4064c 100644
--- a/src/lib/efl/interfaces/efl_text_font.eo
+++ b/src/lib/efl/interfaces/efl_text_font.eo
@@ -52,19 +52,16 @@ interface @beta Efl.Text_Font {
52 ]] 52 ]]
53 c_prefix: efl_text; 53 c_prefix: efl_text;
54 methods { 54 methods {
55 @property font { 55 @property font_family {
56 [[The font family, filename and size for a given text object. 56 [[The font family, filename for a given text object.
57 57
58 This property controls the font name and size of a text object. 58 This property controls the font name of a text object.
59 The font string has to follow fontconfig's convention for 59 The font string has to follow fontconfig's convention for
60 naming fonts, as it's the underlying library used to query system 60 naming fonts, as it's the underlying library used to query system
61 fonts by Evas (see the fc-list command's output, on your system, 61 fonts by Evas (see the fc-list command's output, on your system,
62 to get an idea). Alternatively, youe can use the full path to a font 62 to get an idea). Alternatively, youe can use the full path to a font
63 file. 63 file.
64 64
65 To skip changing font family pass null as font family.
66 To skip changing font size pass 0 as font size.
67
68 When reading it, the font name string is still owned by 65 When reading it, the font name string is still owned by
69 Evas and should not be freed. 66 Evas and should not be freed.
70 See also @.font_source. 67 See also @.font_source.
@@ -75,9 +72,21 @@ interface @beta Efl.Text_Font {
75 } 72 }
76 values { 73 values {
77 font: string; [[The font family name or filename.]] 74 font: string; [[The font family name or filename.]]
75 }
76 }
77
78 @property font_size {
79 [[The font size for a given text object.
80
81 This property controls the font size of a text object.
82 ]]
83 set {}
84 get {}
85 values {
78 size: Efl.Font.Size; [[The font size, in points.]] 86 size: Efl.Font.Size; [[The font size, in points.]]
79 } 87 }
80 } 88 }
89
81 @property font_source { 90 @property font_source {
82 [[The font (source) file to be used on a given text object. 91 [[The font (source) file to be used on a given text object.
83 92
@@ -85,7 +94,7 @@ interface @beta Efl.Text_Font {
85 given text object, overriding system lookup, which will first 94 given text object, overriding system lookup, which will first
86 occur in the given file's contents. 95 occur in the given file's contents.
87 96
88 See also @.font. 97 See also @.font_family.
89 ]] 98 ]]
90 set { 99 set {
91 } 100 }