textpath: improves text rendering quality of curved text 03/180203/5
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 25 May 2018 09:50:50 +0000 (18:50 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 29 May 2018 03:50:03 +0000 (03:50 +0000)
commit999298d496c3c13a4c6f431f11e1167ccef6bc16
treeaad18b10932805ec1231c7e20b522663fac5ffee
parentc8dcbe63ad2fbbdfb3b38c6c8a3691ddc4d143fe
textpath: improves text rendering quality of curved text

There was wrong logic for calculating # of slices, dt, dist of each segment.
It caused bad rendering quality by putting too much slices on small text.

In addition, textpath didn't care about smoothness of curve's slope changing.
The patch fixes to check differences of previous points and next points for Evas Map.
So, textpath can show smoothly curved text.

- Patch on EFL's upsteam:
https://phab.enlightenment.org/D6195

@tizen_fix

Change-Id: Ic03230504c400036acb480d22dacd59ed8a963cf
src/lib/efl_ui_textpath.c