The advance of the letters is too narrow. 62/236762/1
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 17 Jun 2020 07:13:03 +0000 (16:13 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 22 Jun 2020 02:48:17 +0000 (11:48 +0900)
So, remove the floor.

Change-Id: Iae4c426819d7002ad1e4c7aab74818a3ef82aa30

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

index b785c02..da78f59 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;
           }