summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-11-28 16:55:26 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-11-28 16:55:27 +0900
commit7bdb63d045cf3377abb7966d018da10c4e8d6b13 (patch)
tree18d5ddd1391f755bca294fee486d1740b55dba38 /src/lib/efl/interfaces/efl_text_font.eo
parentfa1aa10d792129a031ec16b20d73aa99804359de (diff)
Polish text interface methods
Summary: This patch is set to rename some properties of `Efl.Text_Font` & `Efl.Text_Format` interfaces. 1- efl_text_font_set/get become (efl_text_font_family_set/get, efl_text_font_size_set/get) 2- efl_text_valign/halign become efl_text_vertical/horizontal_align 3- efl_text_halign_auto_type become efl_text_horizontal_align_auto_type Reviewers: ali.alzyod, woohyun, segfaultxavi, bu5hm4n, zmike, cedric Reviewed By: woohyun Subscribers: zmike, #committers, #reviewers, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D10716
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 }