summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-12 15:34:01 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-12 15:58:00 -0500
commit05200163ed7461d3904bd9320dc9b578269f8bd9 (patch)
tree6a6321d80343481256828143110df7e657602590 /src/lib/efl/interfaces/efl_text_font.eo
parenta03bcd34afa2f7e90a89e1fdf4e55b835898afdd (diff)
efl_text_font: copy docs from efl_text_properties
Diffstat (limited to 'src/lib/efl/interfaces/efl_text_font.eo')
-rw-r--r--src/lib/efl/interfaces/efl_text_font.eo51
1 files changed, 43 insertions, 8 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
index f349fbae8c..8a27829541 100644
--- a/src/lib/efl/interfaces/efl_text_font.eo
+++ b/src/lib/efl/interfaces/efl_text_font.eo
@@ -57,20 +57,55 @@ interface Efl.Text.Font {
57 eo_prefix: efl_text; 57 eo_prefix: efl_text;
58 methods { 58 methods {
59 @property font { 59 @property font {
60 [[The font name and size that is used for the displayed text]] 60 set {
61 [[Set the font family, filename and size for a given text object.
62
63 This function allows the font name and size of a text object to
64 be set. The font string has to follow fontconfig's convention for
65 naming fonts, as it's the underlying library used to query system
66 fonts by Evas (see the fc-list command's output, on your system,
67 to get an idea). Alternatively, youe can use the full path to a font
68 file.
69
70 See also @.font.get, @.font_source.get.
71 ]]
72 }
73 get {
74 [[Retrieve the font family and size in use on a given text object.
75
76 This function allows the font name and size of a text object to
77 be queried. Remember that the font name string is still owned by
78 Evas and should not have free() called on it by the caller of the
79 function.
80
81 See also @.font.set.
82 ]]
83 }
61 values { 84 values {
62 font: string; [[Font name]] 85 font: string; [[The font family name or filename.]]
63 size: int; [[Font size]] 86 size: Efl.Font.Size; [[The font size, in points.]]
64 } 87 }
65 } 88 }
66 @property font_source { 89 @property font_source {
67 [[The source that will be used to lookup the font of the text 90 set {
91 [[Set the font (source) file to be used on a given text object.
68 92
69 The source can be either a path to a font file e.g. 93 This function allows the font file to be explicitly set for a
70 "/path/to/font.ttf", or an eet file e.g. "/path/to/font.eet". 94 given text object, overriding system lookup, which will first
71 ]] 95 occur in the given file's contents.
96
97 See also @.font.set.
98 ]]
99 }
100 get {
101 [[Get the font file's path which is being used on a given text
102 object.
103
104 See @.font.get for more details.
105 ]]
106 }
72 values { 107 values {
73 font_source: string; [[Path to font source]] 108 font_source: string; [[The font file's path.]]
74 } 109 }
75 } 110 }
76 111