The advance of the letters is too narrow. 48/236448/3
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 17 Jun 2020 07:13:03 +0000 (16:13 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Fri, 19 Jun 2020 00:42:43 +0000 (00:42 +0000)
So, remove the floor.

Change-Id: Iae4c426819d7002ad1e4c7aab74818a3ef82aa30

dali/internal/text/text-abstraction/shaping-impl.cpp

index b785c02a388912ffab9e86885d52cfa19bb3f5f3..da78f597aca7f57c162756fd19ab53226d117cff 100755 (executable)
@@ -249,10 +249,10 @@ struct Shaping::Plugin
               const GlyphIndex index = rtlIndex + j;
 
               mIndices.PushBack( glyphInfo[index].codepoint );
-              mAdvance.PushBack( floor( glyphPositions[index].x_advance * FROM_266 ) );
+              mAdvance.PushBack( glyphPositions[index].x_advance * FROM_266 );
               mCharacterMap.PushBack( glyphInfo[index].cluster );
-              mOffset.PushBack( floor( glyphPositions[index].x_offset * FROM_266 ) );
-              mOffset.PushBack( floor( glyphPositions[index].y_offset * FROM_266 ) );
+              mOffset.PushBack( glyphPositions[index].x_offset * FROM_266 );
+              mOffset.PushBack( glyphPositions[index].y_offset * FROM_266 );
             }
 
             i += numberOfGlyphsInCluster;
@@ -260,10 +260,10 @@ struct Shaping::Plugin
           else
           {
             mIndices.PushBack( glyphInfo[i].codepoint );
-            mAdvance.PushBack( floor( glyphPositions[i].x_advance * FROM_266 ) );
+            mAdvance.PushBack( glyphPositions[i].x_advance * FROM_266 );
             mCharacterMap.PushBack( glyphInfo[i].cluster );
-            mOffset.PushBack( floor( glyphPositions[i].x_offset * FROM_266 ) );
-            mOffset.PushBack( floor( glyphPositions[i].y_offset * FROM_266 ) );
+            mOffset.PushBack( glyphPositions[i].x_offset * FROM_266 );
+            mOffset.PushBack( glyphPositions[i].y_offset * FROM_266 );
 
             ++i;
           }