path: root/src/lib/efl/interfaces/efl_text_font.eo
diff options
authorali <>2019-07-29 20:18:37 +0000
committerCedric BAIL <>2019-07-31 10:54:55 -0700
commit32cffb4494c46fa3705062c8e43294bf8f5eca87 (patch)
treeaf920b99b04ae43933f10f98d5b841523edc80eb /src/lib/efl/interfaces/efl_text_font.eo
parent6d0f51412626b13e495a3eed559880b1266403f7 (diff)
evas_textblock: change font-size/font-family only using EFL.Text.Font Interface
Currently: User cannot change font size only, he needs to set both font and font size with (**efl_text_font_font_set**) To change size only, you need to make two calls, one to get font (**efl_text_font_font_get**) , then pass it again with new size to (**efl_text_font_font_set**). New Behaviour: If user want to change size only, then he passes NULL as font argument to keep same font. If user want to change font only, then he passes 0 as font-size argument, to keep same font-size. Notes: This is not best solution, but it better than current behaviour. I think best solution to have separate function to set font size, but It might break current api or duplicate functions. Reviewed-by: Cedric BAIL <> Differential Revision:
Diffstat (limited to '')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_text_font.eo b/src/lib/efl/interfaces/efl_text_font.eo
index 27d32d6433..31ded3e43e 100644
--- a/src/lib/efl/interfaces/efl_text_font.eo
+++ b/src/lib/efl/interfaces/efl_text_font.eo
@@ -63,6 +63,9 @@ interface @beta Efl.Text_Font {
63 to get an idea). Alternatively, youe can use the full path to a font 63 to get an idea). Alternatively, youe can use the full path to a font
64 file. 64 file.
65 65
66 To skip changing font family pass null as font family.
67 To skip changing font size pass 0 as font size.
66 See also @.font.get, @.font_source.get. 69 See also @.font.get, @.font_source.get.
67 ]] 70 ]]
68 } 71 }