summaryrefslogtreecommitdiff
path: root/src/static_libs/libunibreak/wordbreakdef.h
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2020-09-01 19:39:13 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-09-01 19:39:13 +0900
commit6e025575350276a0f43ffc33ade696e6bffca395 (patch)
treeaf9573fe682a3c03f16f779342b384b1c7b69e54 /src/static_libs/libunibreak/wordbreakdef.h
parent1ab71284db89dcc37da12dd56796e892bc50ae0a (diff)
evas_textblock: remove style padding from native width and formatted height
Summary: The style padding was included in native width(not in native height) and formatted height(not in formatted width). This is so weired. In addition, there is no enough document about the relation between formatted size, native size and the style padding. This issue is caused by a confusing code which is about how to handle the style padding on item's width and height.("x_adjustment"!) When Evas calculates "c->wmax" in line finalization stage, it explicitly subtract style padding from line width. So, I assumed the formatted size has not to include style padding. It is same for the native size. The style padding will not be included in formatted size and native size by this commit. @fix Test Plan: A test case is included in this commit. Evas_Object *tb = evas_object_textblock_add(evas); newst = evas_textblock_style_new(); evas_textblock_style_set(newst, "DEFAULT='font=Sans font_size=50 color=#000 text_class=entry'"); evas_object_textblock_style_set(tb, newst); evas_object_textblock_text_markup_set(tb, "<style=far_soft_shadow>Test</>"); evas_object_textblock_style_insets_get(tb, &l, &r, &t, &b); fail_if((l != 0) || (r != 4) || (t != 0) || (b != 4)); /* Size with style padding */ evas_object_textblock_size_formatted_get(tb, &w, &h); evas_object_textblock_size_native_get(tb, &nw, &nh); /* It is non-sense if the following condition is true. */ fail_if((w + l + r == nw) && (h == nh + t + b)); Reviewers: raster, ali.alzyod, woohyun, bowonryu Reviewed By: ali.alzyod Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12110
Diffstat (limited to 'src/static_libs/libunibreak/wordbreakdef.h')
0 files changed, 0 insertions, 0 deletions