evas textblock: fixed ascent/descent calculation
authorMinwoo, Lee <minwoo47.lee@samsung.com>
Thu, 8 Dec 2016 07:44:43 +0000 (16:44 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:24:00 +0000 (16:24 +0900)
commit85269a35bea852617a2bca71853b74da44f564fc
tree6f2ef207eef3e3d3d2cd29b41719f947237a380c
parent8237f39cbf06e1a40e3d888799f29314dc766cc4
evas textblock: fixed ascent/descent calculation

This patch is from upstream (c196422e634fc7dda6d0f168278305073007985f)

Summary:
    If textblock has linegap and multi language, ascent/descent calculation is
    incorrect.
    In _layout_format_ascent_descent_adjust(), descent is accumulated.
    (for example, for a line gap of 50, the first line gap is more than 100)

Test Plan:
    Textblock has "linegap=50" and multi language (ex.
            "This is a test suite for line gap -
            ഈ ലൈൻ വിടവ് ടെസ്റ്റ് ടെസ്റ്റ് ടെസ്റ്റ് ടെസ്റ്റ് ഒരു പരീക്ഷണ വെയര് ")
    Added test suite in evas_test_textblock.c file.

Reviewers: tasn

Subscribers: subodh6129, cedric

Differential Revision: https://phab.enlightenment.org/D3311

Signed-off-by: Minwoo, Lee <minwoo47.lee@samsung.com>
Change-Id: Ice4b409f3afe594067bc40bbf93cfd8fff43e1dc
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c