summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_textblock_legacy.h
diff options
context:
space:
mode:
authorali-alzyod <ali198724@gmail.com>2021-08-30 21:13:38 +0300
committerali-alzyod <ali198724@gmail.com>2021-08-30 21:13:38 +0300
commit3a5d04b12506daf0e6ce41b218190e65f68cdc3a (patch)
tree430114fb49f39186402f81e12bcaffcae0cc4424 /src/lib/evas/canvas/evas_textblock_legacy.h
parentdfd0bafdcc8adbc97a43a878c84c25991a627405 (diff)
Content Fit Enhancment
Summary: Allow user to get currently used font size when Text Fitting is enabled. previously, the user can not know what is current font size, he only specifies font size ranges, and the algorithm internally decides suitable font size. with this change, the user has the ability to know the font size, that the fitting algorithm has picked Reviewers: raster Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12288
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_textblock_legacy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_textblock_legacy.h b/src/lib/evas/canvas/evas_textblock_legacy.h
index ae1aaf72b6..e4fee16149 100644
--- a/src/lib/evas/canvas/evas_textblock_legacy.h
+++ b/src/lib/evas/canvas/evas_textblock_legacy.h
@@ -1143,6 +1143,13 @@ EVAS_API int evas_textblock_fit_size_array_get(const Evas_Object *obj, unsigned
1143 */ 1143 */
1144EVAS_API int evas_textblock_fit_size_array_set(Evas_Object *obj, const unsigned int *p_size_array, size_t size_array_len); 1144EVAS_API int evas_textblock_fit_size_array_set(Evas_Object *obj, const unsigned int *p_size_array, size_t size_array_len);
1145 1145
1146/** Get the object fitting font size that is currently used.
1147 *
1148 * @param obj The textblock object.
1149 * @return Returns current used font size for fitting, or -1 if there is no fitting.
1150 * @since 1.26
1151 */
1152EVAS_API int evas_textblock_fit_font_size_get(Evas_Object *obj);
1146 1153
1147 1154
1148 1155