diff options
author | ali-alzyod <ali198724@gmail.com> | 2021-01-29 09:05:50 +0200 |
---|---|---|
committer | ali-alzyod <ali198724@gmail.com> | 2021-01-29 09:05:51 +0200 |
commit | e138962dd75ca15ce4599edbb5d7b2a0946b2c1c (patch) | |
tree | f89537f5eb8c299ba59aa5deb9a9a7c0e9e63b65 /src/lib/evas | |
parent | 6a3522352b305923fd860505e09a28aed3a5e577 (diff) |
evas_textblock: allow default font size to be set without fontname
Reviewers: woohyun, bowonryu, id213sin
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12211
Diffstat (limited to 'src/lib/evas')
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index b206d09bb1..f44dfaab5c 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c | |||
@@ -4372,6 +4372,10 @@ _layout_format_push(Ctxt *c, Evas_Object_Textblock_Format *fmt, | |||
4372 | (int)(((double) _FMT_INFO(size)) * evas_obj->cur->scale), | 4372 | (int)(((double) _FMT_INFO(size)) * evas_obj->cur->scale), |
4373 | fmt->font.bitmap_scalable); | 4373 | fmt->font.bitmap_scalable); |
4374 | } | 4374 | } |
4375 | else if (_FMT_INFO(size)) // if font size specified alone, without font | ||
4376 | { | ||
4377 | fmt->font.size = _FMT_INFO(size); | ||
4378 | } | ||
4375 | if (_FMT_INFO(gfx_filter_name)) | 4379 | if (_FMT_INFO(gfx_filter_name)) |
4376 | { | 4380 | { |
4377 | if (!fmt->gfx_filter) | 4381 | if (!fmt->gfx_filter) |