FontClient ValueToIndex index logic fixed for width, weight and slant 79/48679/3
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 24 Sep 2015 14:52:46 +0000 (15:52 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 24 Sep 2015 16:41:36 +0000 (17:41 +0100)
commit9ab7e53d1544233e8584fc97d986eec4a4e09f79
treea79b1938c4b1cf13e5256973604d9284a030d5d8
parent959fc206f77b66581292ee6fdde708ba66e60251
FontClient ValueToIndex index logic fixed for width, weight and slant

* index was incremented and used rather than used then incremented, resulted in wrong matches for non zero values.
* ValueToIndex moved to helper file so allow automatic testing
* Test cases added

Change-Id: Ia05ad916273d166d7b274829b60779432bec5165
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
automated-tests/src/dali-adaptor-internal/CMakeLists.txt
automated-tests/src/dali-adaptor-internal/utc-Dali-FontClient.cpp [new file with mode: 0644]
text/dali/internal/text-abstraction/font-client-helper.cpp [new file with mode: 0644]
text/dali/internal/text-abstraction/font-client-helper.h [new file with mode: 0644]
text/dali/internal/text-abstraction/font-client-plugin-impl.cpp
text/file.list