X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Futc-Dali-Text-Shaping.cpp;h=52c88087218e648addd842391f14efb5ab2b1a35;hb=6ae6f36998b3be4efa1114e2df856e51628bf812;hp=9dd7d57650264aeccbbcda264ae74c102d60c6fa;hpb=80101813efffed23b09ba72af9f65e36cccfbd58;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Shaping.cpp b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Shaping.cpp index 9dd7d57..52c8808 100755 --- a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Shaping.cpp +++ b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Shaping.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ bool IsEqualGlyph ( const GlyphInfoData& glyphData, const GlyphInfo& glyph ) { return false; } - if( fabsf( glyphData.advance - glyph.advance ) > Math::MACHINE_EPSILON_1000 ) + if( fabsf( glyphData.advance - floor(glyph.advance) ) > Math::MACHINE_EPSILON_1000 ) { return false; } @@ -140,7 +140,8 @@ bool ShapeInfoTest( const ShapeInfoData& data ) layoutSize, textModel, metrics, - false ); + false, + LineWrap::WORD ); LogicalModelPtr logicalModel = textModel->mLogicalModel; VisualModelPtr visualModel = textModel->mVisualModel; @@ -247,7 +248,7 @@ bool ShapeInfoTest( const ShapeInfoData& data ) std::cout << " height : " << glyphInfo.height << std::endl; std::cout << " xBearing : " << glyphInfo.xBearing << std::endl; std::cout << " yBearing : " << glyphInfo.yBearing << std::endl; - std::cout << " advance : " << glyphInfo.advance << std::endl; + std::cout << " advance : " << floor(glyphInfo.advance) << std::endl; std::cout << " scaleFactor : " << glyphInfo.scaleFactor << std::endl; std::cout << " isItalicRequired : " << glyphInfo.isItalicRequired << std::endl; std::cout << " isBoldRequired : " << glyphInfo.isBoldRequired << std::endl;